mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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)) {
|
if (invoice.tax_rate2 && parseFloat(invoice.tax_rate2)) {
|
||||||
taxRate2 = parseFloat(invoice.tax_rate2);
|
taxRate2 = parseFloat(invoice.tax_rate2);
|
||||||
}
|
}
|
||||||
taxAmount1 = roundToTwo(total * (taxRate1/100));
|
taxAmount1 = roundToTwo(total * taxRate1 / 100);
|
||||||
taxAmount2 = roundToTwo(total * (taxRate2/100));
|
taxAmount2 = roundToTwo(total * taxRate2 / 100);
|
||||||
total = total + taxAmount1 + taxAmount2;
|
total = total + taxAmount1 + taxAmount2;
|
||||||
|
|
||||||
for (var key in taxes) {
|
for (var key in taxes) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user