question

01928-7325x2 avatar image
01928-7325x2 asked 01928-7325x2 commented

Tax Calculation For Order With Discount Amount (Not Percentage)

I've been looking on the other post but couldn't find a clear answer about how should we calculate the tax for order with discount amount.
Our calculation for order with discount percentage is correct, however if the discount is not percentage, it is off by $0.01 for some orders.

Our current method for discount with amount is:
1. Calculate order tax (tax A) from (subtotal - discount amount). Rounded up
2. Calculate discount tax (tax B). Rounded up
3. Total tax amount = tax A - tax B


Any guide would be very appreciated.

TaxesDiscounts
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered 01928-7325x2 commented
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

01928-7325x2 avatar image 01928-7325x2 commented ·

Thanks for the links!
We also referred to this post: https://community.clover.com/questions/769/taxesdiscounts.html

Our calculation looks good for all cases other than discount with fixed amount.
Still looking for the solution.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community