[Koha-bugs] [Bug 30167] Return soonest renewal date when CanBookBeRenewed returns %too_soon

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 29 11:46:29 CEST 2022


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

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.de.rooy at rijksmuseum.nl

--- Comment #9 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
+  ($ok,$error,$info) = &CanBookBeRenewed($borrowernumber, $itemnumber[,
$override_limit]);

 Find out whether a borrowed item may be renewed.

+    $info will contain the soonest renewal date if the error is 'too soon'

I would suggest to let $info either be a hash containing a key for soonest
renewal date (among others, room for extension) in order to honor its name or
rename it to soonestrenewaldate. This is somewhat obsure.

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


More information about the Koha-bugs mailing list