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