-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.1.3
-
Fix Version/s: None
-
Component/s: Digital Merchandise Management → Price Lists
-
Labels:None
-
Severity of Issue:Minor
Assumptions
- Pricing engine V2.0
Steps to Reproduce
- Go to Control Panel → Commerce → Pricing → Price Lists
- Create a new price list and add price entries
Expected Behavior
The number of decimal places displayed for users is the larger between the following:
- the number of decimal places until there are no additional non-zero digits, or
- the number of decimal places defined in the "Maximum Decimal Places" setting on the price list's currency
Example 1: Max Decimal Places is larger
- Maximum Decimal Places = 2
- Price is defined as 10.1
- Display: 10.10
Example 2: Max Decimal Places is smaller
- Maximum Decimal Places = 2
- Price is defined as 10.001
- Display: 10.001
Actual Behavior
The number of decimal places displayed does not consider the maximum decimal places setting on the currency and defaults to a minimum of 1 decimal place.
Notes
- This same logic should apply wherever users are allowed to input a price, across price lists, discounts and promotions
An example of a price input box
An example of a price input box that seems to behaving correctly
Reproduced On
7.1
Tomcat 9.0.33 + HSQL 2.3.3
marco-leo/liferay-portal-ee:7.1.x git hash f6228ce4798853c4074a36021934c732012b438f
- fixes
-
COMMERCE-3077 As a pricing manager, I want to manage price lists
-
- Closed
-
- is related to
-
COMMERCE-4469 Standardize the display of prices in the admin UI
-
- Selected for Development
-
- relates
-
COMMERCE-4842 Price modifier amount field is incorrectly formatted
-
- Closed
-