[Koha-bugs] [Bug 31513] Server error when not entering numbers in "Returned to patron"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Sep 11 16:27:11 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31513

--- Comment #2 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
The problem is not an easy fix on first glance. This is all done in JS, but I
have a feeling it should use template variables with the unformatted data
instead:

var amount = button.data('amount');
var amountoutstanding = button.data('amountoutstanding') || 0;
var paid = amount - amountoutstanding;
$("#paid + span").replaceWith(paid);
$("#returned").attr({ "value": paid, "max": paid, "min": 0 });

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list