fix(order): update order summary when transactions change (#8633)
This commit is contained in:
committed by
GitHub
parent
0f240137e9
commit
be942ff15c
@@ -2921,7 +2921,18 @@ export default class OrderModuleService<
|
||||
op(summary.totals.refunded_total, MathBN.abs(trx.amount))
|
||||
)
|
||||
}
|
||||
|
||||
summary.totals.transaction_total = new BigNumber(
|
||||
op(summary.totals.transaction_total, trx.amount)
|
||||
)
|
||||
}
|
||||
|
||||
summary.totals.pending_difference = new BigNumber(
|
||||
MathBN.sub(
|
||||
summary.totals.current_order_total,
|
||||
summary.totals.transaction_total
|
||||
)
|
||||
)
|
||||
})
|
||||
|
||||
createRawPropertiesFromBigNumber(summaries)
|
||||
|
||||
Reference in New Issue
Block a user