https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24186
--- Comment #4 from babar junaid <[email protected]> --- Created attachment 212184 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212184&action=edit Bug 24186: Let UpdateFine lower a fine when the patron is at MaxFine Bug 24186: Let UpdateFine lower a fine when the patron is at MaxFine UpdateFine returned early whenever the patron's outstanding overdue fines had reached MaxFine, before looking at the new amount. A fine that has to go down (a backdated return, a corrected rate) was therefore left at the higher amount. MaxFine is a cap on increases, so it is now only applied when the fine would grow. Test plan: 1. prove t/db_dependent/Overdues.t The new subtest "UpdateFine() lowers a fine when the patron is at MaxFine" fails without the patch (the fine stays at 60, not 30). 2. Apply the patch, prove t/db_dependent/Overdues.t t/db_dependent/Circulation.t t/db_dependent/Fines.t: all pass. 3. In the staff interface: MaxFine = 10, finesMode = Calculate and charge, a rule with a fine of 1 a day. A patron with two items, each 10 days overdue; run misc/cronjobs/fines.pl: the fines are capped, total 10. Check one item in with a return date 3 days after its due date (SpecifyReturnDate). Without the patch its fine stays as it was; with the patch it is recalculated to 3. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are the assignee for the bug. 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/
