1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for PHP/JS checks

This commit is contained in:
Hillel Coren 2017-10-16 22:41:56 +03:00
parent 937e7bb92a
commit c7f0047ff0

View File

@ -1169,9 +1169,9 @@
if (! checkedInvoiceBalances) {
// check amounts are correct
checkedInvoiceBalances = true;
var phpBalance = invoice.balance;
var koBalance = model.invoice().totals.rawTotal();
var jsBalance = calculateAmounts(invoice).total_amount;
var phpBalance = roundSignificant(invoice.balance);
var koBalance = roundSignificant(model.invoice().totals.rawTotal());
var jsBalance = roundSignificant(calculateAmounts(invoice).total_amount);
if (phpBalance == koBalance && koBalance == jsBalance) {
// do nothing
} else {