When creating an invoice with AccountRight we can occasionally receive a one-cent variation due to rounding.
If you have an item with more than two decimal places this will round the line item to two decimal places before calculating the next line. For example on an invoice, the line item TOTAL must breach the 0.005 rounding threshold in order to successfully round up 0.01c in the subtotal.
Anything less and the system will round down and subtotal will remain unchanged.
Endpoints the 1 cent variation can occur on:
/Sale/Invoice/Item
/Sale/Order/Item
/Sale/Quote/Item
/Purchase/Bill/Item
/Purchase/Order/Item
Example:
6 decimal place:
10.555555 + 10.588888 = 21.144443
2 decimal place:
10.56 + 10.59 = 21.15
"Lines": [
{
"Type": "Transaction",
"Description": "Rounding test",
"BillQuantity": 1.000000,
"ReceivedQuantity": 1.000000,
"BackorderQuantity": 0.0,
"Total": 10.590000,
"TotalForeign": null,
"UnitPrice": 10.588888,
"UnitOfMeasure": null,
"UnitCount": null,
"Job": null,
"UnitPriceForeign": null,
Comments
0 comments
Article is closed for comments.