1
0
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:
Hillel Coren 2017-04-29 22:15:02 +03:00
parent abf14174b7
commit fc15c466be
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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) {