[Koha-bugs] [Bug 19532] Recalls for Koha

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 2 15:45:17 CET 2022


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

--- Comment #857 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Marcel de Rooy from comment #856)
> Created attachment 131257 [details] [review]
> Bug 19532: (QA follow-up) Fix fine calculation by inserting biblionumber
> 
> The fines cron job uses Getoverdues to pass issue info to CalcFine.
> It took me a while to realize that the overdue hash does not contain
> a biblionumber. When testing CalcFine, we pass an item hash that
> does include one.
> 
> So what happened? $item->{biblionumber} is undefined when it comes from
> Getoverdues and no recall overdue fine is calculated, only a regular one.
> 
> Simple fix (without any impact): Add a biblionumber to Getoverdues.
> 
> Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
> Tested with fines.pl: recall fine applied now.
> Ran some Circulation and Overdues unit tests.

This was a serious bug! The fines cron job would never ever calculate the
correct recalls fine when you relied on Getoverdues without biblionumber..

I didnt see any reference to testing this process in the large test plan btw ;)

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


More information about the Koha-bugs mailing list