CSR-2091 amount due showing as $NaN because it is adding the string values returned from getSubTotal and getSalesTax.  Use the unary operator to convert to numeric before adding.
This commit is contained in:
CarlNation 2024-06-18 06:58:40 -04:00
parent 258c8ec2a3
commit 451ce9cbf7

View file

@ -930,7 +930,10 @@ export default {
if (!this.showAsPaid) {
return 0;
}
return this.subTotal + this.salesTax;
// unary plus operator to convert string amount to numeric so we can add them together
var amtPaid = +this.subTotal + +this.salesTax;
return amtPaid;
},
},
components: {