mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 03:10:57 -04:00
Fix for PHP/JS checks
This commit is contained in:
parent
937e7bb92a
commit
c7f0047ff0
@ -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