https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44027 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 210872 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210872&action=edit Bug 44027: Read the typed amount in the individual write-off check Bug 44027: Read the typed amount in the individual write-off check The submit guard of the individual write-off form read both amounts with .attr("value"), which is the input's initial value, not what was typed. The write-off amount always equalled the outstanding amount, so the "You are attempting to writeoff more than the value of the fee." alert never showed and the server answered with the payment message instead. Test plan: 1. Give a patron a 6.00 manual charge. 2. Patrons > Accounting > Make a payment, click "Write off" on the line. 3. Type 7.00 and submit: no alert, the page reloads with "You must pay a value less than or equal to 6.00.". 4. Apply the patch, reload the page. 5. Repeat 2-3: the alert "You are attempting to writeoff more than the value of the fee." is shown and nothing is submitted. 6. Write off 3.00: it is recorded and 3.00 remains outstanding. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.