change invoice total validation from rmb to rm

This commit is contained in:
omair saleh
2020-09-23 14:48:39 +08:00
parent 212f4f8638
commit db7679cc16
@@ -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
}