mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:24:31 -04:00
Fix for PHP/JS checks
This commit is contained in:
parent
8b2c5d91d7
commit
7850b83ee2
@ -1169,9 +1169,9 @@
|
|||||||
if (! checkedInvoiceBalances) {
|
if (! checkedInvoiceBalances) {
|
||||||
// check amounts are correct
|
// check amounts are correct
|
||||||
checkedInvoiceBalances = true;
|
checkedInvoiceBalances = true;
|
||||||
var phpBalance = invoice.balance;
|
var phpBalance = roundSignificant(invoice.balance);
|
||||||
var koBalance = model.invoice().totals.rawTotal();
|
var koBalance = roundSignificant(model.invoice().totals.rawTotal());
|
||||||
var jsBalance = calculateAmounts(invoice).total_amount;
|
var jsBalance = roundSignificant(calculateAmounts(invoice).total_amount);
|
||||||
if (phpBalance == koBalance && koBalance == jsBalance) {
|
if (phpBalance == koBalance && koBalance == jsBalance) {
|
||||||
// do nothing
|
// do nothing
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user