mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Add check for PHP/JS balances
This commit is contained in:
parent
b534ad4e83
commit
a9104c64b0
@ -863,6 +863,13 @@
|
||||
}
|
||||
}
|
||||
model.invoice().addItem(); // add blank item
|
||||
|
||||
// check amounts are correct
|
||||
var phpBalance = invoice.balance;
|
||||
var jsBalance = model.invoice().totals.rawTotal();
|
||||
if (phpBalance != jsBalance) {
|
||||
window.onerror('Balances do not match | PHP: ' + phpBalance + ', JS: ' + jsBalance);
|
||||
}
|
||||
@else
|
||||
// set the default account tax rate
|
||||
@if ($account->invoice_taxes)
|
||||
|
Loading…
Reference in New Issue
Block a user