Hello,
How does clover calculate/apply subtotal discounts on orders while calculating order total? From my trial and error calculations and comparing with clover calculated totals from receipts, i could assume that a subtotal level percentage or amount discount is subtracted equally from all line items that are taxable.
Is this a correct assumption?
But i also could see that the numbers match closely for most cases even if i spread the discounts across both taxable and non-taxable items in a order. But i am currently unable to conclude the correct procedure as to how Clover does it. I need this to do this calculation in my node server rest apis for online orders placing.
Kindly shed some light on what is the proper way to apply and calculate discounts for an order. And any special logic/sequence it should be done.
Any help is highly appreciated.
Thanks in advance