@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -387,7 +387,7 @@ var amountoutstanding = button.data('amountoutstanding'); var paid = amount - amountoutstanding; $("#paid + span").replaceWith(paid); - $("#returned").attr({ "value": paid, "max": paid }); + $("#returned").attr({ "value": paid, "max": paid, "min": 0 }); $("#returned, #refund_transaction_type").focus(); }); @@ -399,7 +399,7 @@ $('#discountline').val(accountline); var amount = button.data('amount'); $("#charged + span").replaceWith(amount); - $("#discount").attr({ "max": amount }); + $("#discount").attr({ "max": amount, "min": 0 }); $("#discount").focus(); }); }); --