CSR-2091
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:
parent
258c8ec2a3
commit
451ce9cbf7
1 changed files with 4 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue