Working on tests
This commit is contained in:
parent
0e1fb2c766
commit
d1f5b8dd32
1 changed files with 4 additions and 0 deletions
|
|
@ -220,6 +220,10 @@
|
|||
var invoice = invoiceMap[invoiceId];
|
||||
var amount = $('#amount').val();
|
||||
|
||||
if (! invoice) {
|
||||
logError('Warning: invoice not found: ' + invoiceId);
|
||||
}
|
||||
|
||||
if (amount <= invoice.balance || confirm("{{ trans('texts.amount_greater_than_balance') }}")) {
|
||||
$('#saveButton').attr('disabled', true);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue