1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Bug fixes

This commit is contained in:
Hillel Coren 2014-05-01 21:17:04 +03:00
parent a4a66cba63
commit 9360852ad5
2 changed files with 2 additions and 2 deletions

View File

@ -36967,7 +36967,7 @@ function calculateAmounts(invoice) {
total = parseFloat(total) + parseFloat(tax); total = parseFloat(total) + parseFloat(tax);
} }
invoice.balance_amount = total.toFixed(4) - (accounting.toFixed(invoice.amount, 2) - accounting.toFixed(invoice.balance, 2)); invoice.balance_amount = accounting.toFixed(total,2) - (accounting.toFixed(invoice.amount,2) - accounting.toFixed(invoice.balance,2));
invoice.tax_amount = tax; invoice.tax_amount = tax;
invoice.discount_amount = discount; invoice.discount_amount = discount;
invoice.has_taxes = hasTaxes; invoice.has_taxes = hasTaxes;

View File

@ -1500,7 +1500,7 @@ function calculateAmounts(invoice) {
total = parseFloat(total) + parseFloat(tax); total = parseFloat(total) + parseFloat(tax);
} }
invoice.balance_amount = total.toFixed(4) - (accounting.toFixed(invoice.amount, 2) - accounting.toFixed(invoice.balance, 2)); invoice.balance_amount = accounting.toFixed(total,2) - (accounting.toFixed(invoice.amount,2) - accounting.toFixed(invoice.balance,2));
invoice.tax_amount = tax; invoice.tax_amount = tax;
invoice.discount_amount = discount; invoice.discount_amount = discount;
invoice.has_taxes = hasTaxes; invoice.has_taxes = hasTaxes;