mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on tests
This commit is contained in:
parent
0e1fb2c766
commit
d1f5b8dd32
@ -220,6 +220,10 @@
|
|||||||
var invoice = invoiceMap[invoiceId];
|
var invoice = invoiceMap[invoiceId];
|
||||||
var amount = $('#amount').val();
|
var amount = $('#amount').val();
|
||||||
|
|
||||||
|
if (! invoice) {
|
||||||
|
logError('Warning: invoice not found: ' + invoiceId);
|
||||||
|
}
|
||||||
|
|
||||||
if (amount <= invoice.balance || confirm("{{ trans('texts.amount_greater_than_balance') }}")) {
|
if (amount <= invoice.balance || confirm("{{ trans('texts.amount_greater_than_balance') }}")) {
|
||||||
$('#saveButton').attr('disabled', true);
|
$('#saveButton').attr('disabled', true);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user