Discount should be applied before tax is caclulated #1046
Replies: 2 comments
-
|
I understand the problem. Maybe we need the option to specify whether the discount is before or after tax. Eg. In the UK, retail sales always show the price including tax. So if the item was £50.00, the customer would expect a 20% discount to make it £40.00, not £38.40. |
Beta Was this translation helpful? Give feedback.
-
|
Following up on this, I consulted accounting software. You are calculating the tax from the cart sub-total in your example, whereas tax should be calculated per line. E.g. We are going to be updating the discount code soon and will introduce tests like this to ensure calculations are correct. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Expected Behaviour:
In cart:
Item 1.96 x 2 = 3.92 USD
Shipping = 13 USD
Discount 10% = 0.39
Vat 24% = (3.92 - 0.39 + 13) * 0.24 = 3.97
Actual Behaviour:
In cart:
Item 1.96 x 2 = 3.92 USD
Shipping = 13 USD
Discount 10% = 0.39
Vat 24% = (3.92 + 13) * 0.24 = 4.06
Steps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions