From 2439b8b001cc47ef513befc1f8feb9f6a44538c3 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sun, 27 Jul 2025 18:53:02 +0800 Subject: [PATCH] E-Invoice - Fix a problem reported by Joanne on 20250721 about customer not able to edit PO details after edit booking amount --- .../components/bookings/forms/PurchaseOrderFormComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/vue/components/bookings/forms/PurchaseOrderFormComponent.vue b/resources/assets/vue/components/bookings/forms/PurchaseOrderFormComponent.vue index cbac584e..593c84be 100644 --- a/resources/assets/vue/components/bookings/forms/PurchaseOrderFormComponent.vue +++ b/resources/assets/vue/components/bookings/forms/PurchaseOrderFormComponent.vue @@ -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);