mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Rounding error #1453
This commit is contained in:
parent
abf14174b7
commit
fc15c466be
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -756,8 +756,8 @@ function calculateAmounts(invoice) {
|
||||
if (invoice.tax_rate2 && parseFloat(invoice.tax_rate2)) {
|
||||
taxRate2 = parseFloat(invoice.tax_rate2);
|
||||
}
|
||||
taxAmount1 = roundToTwo(total * (taxRate1/100));
|
||||
taxAmount2 = roundToTwo(total * (taxRate2/100));
|
||||
taxAmount1 = roundToTwo(total * taxRate1 / 100);
|
||||
taxAmount2 = roundToTwo(total * taxRate2 / 100);
|
||||
total = total + taxAmount1 + taxAmount2;
|
||||
|
||||
for (var key in taxes) {
|
||||
|
Loading…
Reference in New Issue
Block a user