fixed switched total validation from amount to bank in amount

This commit is contained in:
omair saleh
2020-09-21 14:34:23 +08:00
parent a8ddf6180b
commit b733b36a86
@@ -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
}