chore(core-flows): order transactions (#8568)
What: - Add order transaction when Cart is completed and payment is refunded
This commit is contained in:
committed by
GitHub
parent
24985cf89d
commit
96bdf3e2c6
@@ -2742,7 +2742,7 @@ moduleIntegrationTestRunner<ICartModuleService>({
|
||||
tax_total: 0,
|
||||
discount_total: 300,
|
||||
discount_tax_total: 0,
|
||||
original_total: 220,
|
||||
original_total: 210,
|
||||
original_tax_total: 0,
|
||||
item_total: 200,
|
||||
item_subtotal: 500,
|
||||
@@ -2777,7 +2777,7 @@ moduleIntegrationTestRunner<ICartModuleService>({
|
||||
precision: 20,
|
||||
},
|
||||
raw_original_total: {
|
||||
value: "220",
|
||||
value: "210",
|
||||
precision: 20,
|
||||
},
|
||||
raw_original_tax_total: {
|
||||
|
||||
@@ -50,9 +50,6 @@ function updateReturnItems(returnEntry, items) {
|
||||
const data = items.find((i) => i.details.reference_id === item.item_id)
|
||||
if (!data) return
|
||||
|
||||
console.log("ITEM: ", item)
|
||||
console.log("DATA: ", data)
|
||||
|
||||
const receivedQuantity = MathBN.add(
|
||||
item.received_quantity || 0,
|
||||
data.details.quantity
|
||||
|
||||
Reference in New Issue
Block a user