fix(utils,medusa,order,cart): fix totals when promotions are included (#9014)
* fix(utils): fix totals when promotions are included * chore: update totals calc * chore: ignore taxes when taxable amount is 0 * chore: use subtotals everywhere * chore: fix shipping totals + tests
This commit is contained in:
1 parent
3244067ee4
commit
afd0921326
12 files changed
+378
-359
No files matched your search
@@ -9,6 +9,7 @@ export const defaultStoreCartFields = [
|
||||
"subtotal",
|
||||
"tax_total",
|
||||
"discount_total",
|
||||
"discount_subtotal",
|
||||
"discount_tax_total",
|
||||
"original_total",
|
||||
"original_tax_total",
|
||||
|
||||
@@ -26,6 +26,7 @@ export const defaultStoreRetrieveOrderFields = [
|
||||
"subtotal",
|
||||
"tax_total",
|
||||
"discount_total",
|
||||
"discount_subtotal",
|
||||
"discount_tax_total",
|
||||
"original_total",
|
||||
"original_tax_total",
|
||||
|
||||
Reference in new issue
Block a user