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);