Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c9df31507 |
@@ -506,7 +506,7 @@ function SubmissionRow({
|
||||
useEffect(() => {
|
||||
if (currentBalance !== undefined) {
|
||||
let balanceBeforeThisOrder = currentBalance
|
||||
const shouldCountBill = sub.bill != null && (sub.order.status === 'CLOSE' || sub.payment_status === 'LUNAS')
|
||||
const shouldCountBill = sub.bill != null && (isClosed || sub.payment_status === 'LUNAS')
|
||||
if (shouldCountBill) {
|
||||
const diff = (sub.paid_amount || 0) - (sub.bill || 0)
|
||||
balanceBeforeThisOrder -= diff
|
||||
|
||||
Reference in New Issue
Block a user