Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c9df31507 |
@@ -506,7 +506,7 @@ function SubmissionRow({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (currentBalance !== undefined) {
|
if (currentBalance !== undefined) {
|
||||||
let balanceBeforeThisOrder = currentBalance
|
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) {
|
if (shouldCountBill) {
|
||||||
const diff = (sub.paid_amount || 0) - (sub.bill || 0)
|
const diff = (sub.paid_amount || 0) - (sub.bill || 0)
|
||||||
balanceBeforeThisOrder -= diff
|
balanceBeforeThisOrder -= diff
|
||||||
|
|||||||
Reference in New Issue
Block a user