Magento – Magento 2: Tax is calculate before applying discount

discountmagento2taxtax-calculation

We need to apply all the taxes after applying discount. But currently taxes are calculated before applying discount.

Screenshot: ScreenshotAs you can see how the tax are being calculate on 200 rather than on (200-14) = 186.

Here are tax settings in store – Configuration – Sales – Tax. (We have set it to calculate taxes after discount)

enter image description here

Discounts are being applied here programmatically following this link
because we have discounts based on the type of user logged in.

Any suggestion is much appreciated. Thanks.

Best Answer

Under System > Configuration > Tax > Calculation Settings there are options for the order tax rules are applied, including Apply Customer Tax which can be either Before Discount or After Discount.

I'm assuming you currently have it set to Before Discount.

Related Topic