View | Details | Raw Unified | Return to bug 27967
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-3 / +2 lines)
Lines 387-393 Link Here
387
                var amountoutstanding = button.data('amountoutstanding');
387
                var amountoutstanding = button.data('amountoutstanding');
388
                var paid = amount - amountoutstanding;
388
                var paid = amount - amountoutstanding;
389
                $("#paid + span").replaceWith(paid);
389
                $("#paid + span").replaceWith(paid);
390
                $("#returned").attr({ "value": paid, "max": paid });
390
                $("#returned").attr({ "value": paid, "max": paid, "min": 0 });
391
                $("#returned, #refund_transaction_type").focus();
391
                $("#returned, #refund_transaction_type").focus();
392
            });
392
            });
393
393
Lines 399-405 Link Here
399
                $('#discountline').val(accountline);
399
                $('#discountline').val(accountline);
400
                var amount = button.data('amount');
400
                var amount = button.data('amount');
401
                $("#charged + span").replaceWith(amount);
401
                $("#charged + span").replaceWith(amount);
402
                $("#discount").attr({ "max": amount });
402
                $("#discount").attr({ "max": amount, "min": 0 });
403
                $("#discount").focus();
403
                $("#discount").focus();
404
            });
404
            });
405
        });
405
        });
406
- 

Return to bug 27967