Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 5.11.0
-
Fix Version/s: 5.12.0-b1
-
Component/s: Client Interface, Staff Interface
-
Labels:None
Description
We will take USD for example, with a decimal precision of 2. 1,234.56. Even with this currency precision, it is possible to create prices in the thousands and ten-thousandths place. The unit price on invoices (PDF and HTML) rounds to the currency precision. We should show the number of decimals necessary on the unit price of line items, instead of rounding to currency precision.
To reproduce:
1. Create a config option of qty with a price of 0.0050
2. Create a service with invoice using some quantity of this config option
3. Note that the unit price is shown as 0.00 on the PDF invoice, but we want to show it as 0.005 since we have a value in the thousandths place. Since there is no value in the ten-thousandths place, the 0 is not displayed. If however, the unit price was 0.0051, then it would be displayed.
We will continue to enforce total/subtotal rounding as we do now, this update is only for line item unit prices.
Considerations (there may be others)
- All 3 PDF invoice templates
- Client area HTML invoice
- Make sure it works properly with currency precisions of 0, 1, 2, 3, 4
NOTE ALSO: When a client Manages their service in the Configurable Options listing, it also rounds, showing the wrong price. We should do the same thing here as the unite price on the invoice. Screenshot of this one attached.