[Koha-bugs] [Bug 16187] Add a script to cancel unfilled holds after a specified number of days
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 19 11:59:35 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16187
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #64924|0 |1
is obsolete| |
--- Comment #20 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 68289
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68289&action=edit
Bug 16187 - Add a script to cancel unfilled holds after a specified number of
days
This script takes parameters:
days - how many days waiting to concal an unfilled hold on or after
library - (repeatable) branches to consider
holidays - whether or not to count holidays (default is no)
This patchset adds two methods and covers them with tests:
Koha::Holds->unfilled(); To return holds where found = undef
Koha::Hold->age( $use_calendar ); To return the number of days since a
hold was placed (including or excluding holidays)
To test:
1 - Place some holds with varying reservedates
2 - Run script with different parameters to verify options are respected
(-v for verbosity will assist here)
3 - verify that script does nothing without days parameter
Sponsored by:
Siskiyou County Library (http://www.siskiyoulibrary.info/)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list