http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7408
--- Comment #3 from Ian Walls <koha.sek...@gmail.com> 2012-01-27 22:07:16 UTC --- Created attachment 7357 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=7357 Proposed Patch ENH 7408: Expire holds that have been waiting too long This script updates all holds that have been waiting for pickup longer than ReservesMaxPickupDelay days, and sets the expiration date to today. The script can also take an optional parameter --charge that will fine the patron the amount specified. The fine will appear as type 'F', with the description "Hold waiting too long", and a link back to the item that was used to fill the hold. This script is intended to be run right before cronjobs/holds/cancel_expired_holds.pl If that script is not run, the expiration date will be updated again when this script runs, and the patron will be charged again (if --charge is set). To Test: 1. run perl misc/cronjobs/holds/expire_holds_over.pl -v --charge 1.25 you should get a message confirming how much you're charging, and how many holds were updated 2. View the Holds Awaiting Pickup page, and the Holds Over tab For each hold over, clicking to the title's Holds page should show the hold now has an expiration date of today. 3. Clicking over to the patron should show a fine of 1.25, with a link back to the item that had be waiting for them 4. Running cancel_expired_holds.pl then this script again should result in 0 holds modified -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/