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

--- Comment #5 from babar junaid <[email protected]> ---
I have attached a fix, with a new test.

Martin's test patch (attachment 96073) no longer applies: the UpdateFine tests
in t/db_dependent/Overdues.t have been rewritten since 2019. The new subtest
covers the same case (a fine recalculated lower, e.g. after a backdated return,
while the patron is at MaxFine): on main the fine stays at 60 instead of going
down to 30.

The fix applies MaxFine only when the fine would grow. Attachment 96074 only
adds debugging output and can be obsoleted.

Tested on main (6ff8078): Overdues.t, Circulation.t and Fines.t pass; QA tools
pass.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to