From b1f82d43bd7db824e24b251a31041b1e00dbd706 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 21 Sep 2020 14:41:57 +0800 Subject: [PATCH] fixed switched total validation from amount to bank in amount --- resources/assets/js/components/NewInvoice.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/components/NewInvoice.vue b/resources/assets/js/components/NewInvoice.vue index 84afda88..4d9ad30a 100644 --- a/resources/assets/js/components/NewInvoice.vue +++ b/resources/assets/js/components/NewInvoice.vue @@ -594,7 +594,6 @@ export default { tax, service_charge, amount, - bia, rate } = this.booking_details @@ -602,7 +601,6 @@ export default { this.tax = tax this.service_charge = service_charge this.amount = amount - this.bia = bia this.rate = rate } }, @@ -677,9 +675,9 @@ export default { return } - if (this.bia != this.total) { + if (this.amount != this.total/) { console.log('amount not matched') - alert(`PO Total RM${this.total} Does Not Match Expected RM${this.bia}`) + alert(`PO Total RM${this.total} Does Not Match Expected RM${this.amount}`) return }