From db7679cc164038fb0c763b6c0f48fa2d46fe0660 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 23 Sep 2020 14:48:39 +0800 Subject: [PATCH] change invoice total validation from rmb to rm --- resources/assets/js/components/NewInvoice.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/NewInvoice.vue b/resources/assets/js/components/NewInvoice.vue index 36e25ef3..6f36e0b2 100644 --- a/resources/assets/js/components/NewInvoice.vue +++ b/resources/assets/js/components/NewInvoice.vue @@ -594,6 +594,7 @@ export default { tax, service_charge, amount, + bia, rate } = this.booking_details @@ -601,6 +602,7 @@ export default { this.tax = tax this.service_charge = service_charge this.amount = amount + this.bia = bia this.rate = rate } }, @@ -675,9 +677,9 @@ export default { return } - if (this.amount != this.total) { + if (this.amount !== 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 }