There seems to be a very odd rounding error on promotions; this order has a 20% discount applied on two lines - both tax-exempt food items:
- Line 1:
(1 * ((13.99 / 100) * 20)) = 2.798which rounds to
- Line 3:
(2 * ((8.49 / 100) * 20)) = 3.396should round to
2.798 getting rounded up yet
3.396 getting rounded down?
I'm sure it has something to do with the
Qty - like a rounding error doubled - but I can't find where that calculation is actually done in the code...