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 }