mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 01:44:30 -04:00
Rounding error #1453
This commit is contained in:
parent
d1e77f877b
commit
abf14174b7
@ -473,8 +473,9 @@ function InvoiceModel(data) {
|
||||
total = NINJA.parseFloat(total) + customValue2;
|
||||
}
|
||||
|
||||
var taxAmount1 = roundToTwo(total * (parseFloat(self.tax_rate1())/100));
|
||||
var taxAmount2 = roundToTwo(total * (parseFloat(self.tax_rate2())/100));
|
||||
var taxAmount1 = roundToTwo(total * parseFloat(self.tax_rate1()) / 100);
|
||||
var taxAmount2 = roundToTwo(total * parseFloat(self.tax_rate2()) / 100);
|
||||
|
||||
total = NINJA.parseFloat(total) + taxAmount1 + taxAmount2;
|
||||
total = roundToTwo(total);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user