Headless commerce and custom storefronts with Shopify APIs and SDKs
Hi! Could one please explain how "Discounts" are calculated for taxable orders?
For example - there is an order:
|GDS Gross sales||Discounts||Returns||Net sales||Shipping||Tax||Total sales|
The order itself has a "fixed_amount" discount of 20 euros and the following line items:
|price||tax rate||tax price||pre_tax_price||discount_allocations|
As I understand - with this type of discount "discount_allocations" are calculated as a proportional value of a total discount to the line item price.
And total discount would be a sum of "discount_allocations"/(1+"tax rate"). And it should be 16$.
But Shopify says it is 15.06$ !
This is a huge difference! How a euro got lost on Shopify calculations?
Just wanted to know if you found an answer to your problem?
I just try to rebuild your case and there is something weird.
The gross sales amount is not the good one. Are you sure about your tax rates?
Because following your table, we should have 49.32 as a gross sales amount. And in your table we got 46,48.
Here is a table that i created to rebuild the tax / discounts amounts.
Hope it helps,
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...By Jacqui Mar 10, 2023
Upskill and stand out with the new Shopify Foundations Certification programBy SarahF_Shopify Mar 6, 2023
One of the key components to running a successful online business is having clear and co...By Ollie Mar 6, 2023