Fix an issue reported by Eileen where customer cannot edit po after edit booking amount

This commit is contained in:
Dillon Ngo
2026-03-11 15:39:18 +08:00
parent b007bbdd28
commit 2fec69f1d1
@@ -377,7 +377,7 @@
//Condition 2
const paymentsMade = Math.round((this.data.paid_amount + Number.EPSILON) * 100) / 100 > 0;
const outstandingAmount = Math.round((this.data.outstanding_amount + Number.EPSILON) * 100) / 100 > 0;
const allPaymentApproved = this.data.payment_history.every(payment => (payment.status === 2 || payment.status === 3));
const allPaymentApproved = this.data.payment_history.every(payment => (payment.status === 2 || payment.status === 3 || payment.status === 7));
//Condition 3
const adminBeforeApproval = this.$store.getters.isAdmin && !(this.data.purchase_order.status === 2);