E-Invoice - Fix a problem reported by Joanne on 20250721 about customer not able to edit PO details after edit booking amount

This commit is contained in:
Dillon Ngo
2025-07-27 18:53:02 +08:00
parent b67a85a95c
commit 2439b8b001
@@ -275,7 +275,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);
const allPaymentApproved = this.data.payment_history.every(payment => (payment.status === 2 || payment.status === 3));
//Condition 3
const adminBeforeApproval = this.$store.getters.isAdmin && !(this.data.purchase_order.status === 2);