Fix for PHP/JS checks
This commit is contained in:
parent
8b2c5d91d7
commit
7850b83ee2
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue