-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Not a Bug
-
Affects Version/s: 2.1.0
-
Fix Version/s: 2.1.2
-
Component/s: Configuration and Settings
-
Labels:
Steps to Reproduce
- Go to Control Panel → Commerce → Settings → Currencies
- Create a currency
- Fill out the required fields
- Set Minimum Decimal Places field to 3
- Set Maximum Decimal Places field to 10
- Save currency
- Create a catalog (Control Panel → Commerce → Catalogs) and set the currency to the currency created in steps 1 - 6
- Create a product (Control Panel → Commerce → Products) inside the catalog created in step 7
- Go to the SKUs tab and edit the default SKU
- Set the price for the product to 1.1 and save
Expected Behavior
The display of the price is 1.100 because the minimum decimal places value is 3 and the price doesn't include non-zero numbers past the 3rd decimal place.
Actual Behavior
The display of the price is 1.1000000000
Reproduced On
7.2
Tomcat 9.0.33 + HSQL 2.3.3
DXP 7.2 git hash cf49d78b37a0575edbf96a54bf53199ac6fae0ca
Commerce git hash fd1da8617e20241bb86e8662ff04f7a64edf0faf
7.1
Tomcat 9.0.33 + HSQL 2.3.3
DXP 7.1 and Commerce git hash fd1da8617e20241bb86e8662ff04f7a64edf0faf