question

ydev avatar image
ydev asked ·

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 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered ·
1 comment Share
10 |2000 characters needed characters left characters exceeded

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

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