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:
parent
937e7bb92a
commit
c7f0047ff0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user