Hi,
We are running into some issues with rounding with discounts and taxes. The difference is usually by 0,01€, but still depending on the settings in the backend there are 2 consequences:
- The credit card is authorized for less
- The customer complains because the "Total" does not add up correctly
In attachment you can see my findings for a matrix of 3 discount types with the 4 possible rounding settings (none, up, down, nearest). You will see they are never consistent, and if I manage to find a pattern that works (our client in not worried about the pennie difference as he with with the 2 situations described above), it's a matter of probability, because changing the discount percentage and/or product price breaks the pattern.
The scenario
- 2 different products with the same price of $8,99 (1 qty each)
- Flat tax rate of 7,25%
- Flat shipping fee of $5,95
The problem
- The order total is calculated without rounding, and only then rounding is applied
- This sometimes results in a difference of $0,01
The solution
- So far the only solution I see would be that when calculating the Order Total, to take the rounding into account, but that's easier said than done too, and would not be accurate in terms of data. What to do?
- I'd have to defer to smarter people now.
- We can make the templates look accurate by doing the calculations in Razor, however the authorized amount on the credit card would not be accurate
Using 9.2.9
Best Regards,
Nuno Aguiar