From d1f5b8dd321205928c340aea9ff0684e48df3487 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 18 Jan 2018 09:21:40 +0200 Subject: [PATCH] Working on tests --- resources/views/payments/edit.blade.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/views/payments/edit.blade.php b/resources/views/payments/edit.blade.php index ff9dc5d0e29a..81d1aace03cc 100644 --- a/resources/views/payments/edit.blade.php +++ b/resources/views/payments/edit.blade.php @@ -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;