fix(order): update order summary when transactions change (#8633)

This commit is contained in:
Carlos R. L. Rodrigues
2024-08-16 16:40:44 -03:00
committed by GitHub
parent 0f240137e9
commit be942ff15c
3 changed files with 29 additions and 67 deletions
@@ -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)