question

komahan avatar image
komahan asked David Marginian Deactivated commented

How to get discount Amount for am order?

Can we get discount amount directly for all types of discounts irrespective of percentage discount or Amount Discount? Currently if we get percentage, we are getting some differences

REST APIDiscounts
10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered

Are you trying to calculate the discounts for an order?

10 |2000

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

komahan avatar image
komahan answered David Marginian Deactivated commented

Yes, we are trying to calculate discount amount for an order . For Amount Discount, we are good. However, while calculating Amount from Percentage discounts, there is scope for mismatch in decimals. So, is there anyway we can get Discount Amount directly?

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.

David Marginian avatar image David Marginian ♦♦ commented ·

See the accepted answer here - https://community.clover.com/questions/31457/taxes-with-amount-discounts-off-by-001.html.. It has an example on how to calculate the total with discounts.

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