chore(core-flows): order transactions (#8568)

What:

- Add order transaction when Cart is completed and payment is refunded
This commit is contained in:
Carlos R. L. Rodrigues
2024-08-12 16:06:58 -03:00
committed by GitHub
parent 24985cf89d
commit 96bdf3e2c6
15 changed files with 140 additions and 32 deletions

View File

@@ -329,7 +329,7 @@ describe("Total calculation", function () {
tax_total: 9.512770562770562,
discount_total: 17.5,
discount_tax_total: 1.65,
original_total: 124.5,
original_total: 109.97619047619048,
original_tax_total: 11.067099567099566,
item_total: 97.37,
item_subtotal: 100.9090909090909,
@@ -618,7 +618,7 @@ describe("Total calculation", function () {
tax_total: 10.08,
discount_total: 24.2,
discount_tax_total: 2.42,
original_total: 140.8,
original_total: 115.8,
original_tax_total: 12.5,
item_total: 85.8,
item_subtotal: 100,

View File

@@ -191,7 +191,7 @@ export function decorateCartTotals(
// TODO: Gift Card calculations
const originalTempTotal = MathBN.add(
subtotal,
itemsOriginalSubtotal,
shippingOriginalTotal,
originalTaxTotal
)