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.798
which rounds to2.8
- Line 3:
(2 * ((8.49 / 100) * 20)) = 3.396
should round to3.4
not3.39
Why is 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...