Rounding error #1453
This commit is contained in:
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
|
|
@ -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…
Add table
Reference in a new issue