Koha-clms/misc/cronjobs/holds
Nick Clemens fce44867ac Bug 31540: Exclude expired holds from the reminder job
Some libraries don't want to auto-cancel holds, but we should not remind
a patron about a hold which has expired.

To test:
1 - Place a hold for a patron
2 - Set it waiting
3 - Run the holds reminder script in the future
    perl misc/cronjobs/holds/holds_reminder.pl -day 1 --date '2023-09-12' -v
4 - Note the holds would be reminded
5 - Set expirationdate for the hold less than today
    UPDATE reserves SET expirationdate = DATE_SUB(CURDATE(), INTERVAL 1 DAY);
6 - Run the remidner cron again
7 - No holds trigger!

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4c3d18091d)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 6e3ff69730)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-12-14 10:43:15 +01:00
..
auto_unsuspend_holds.pl Bug 31058: Fix import AutoUnsuspendHolds 2022-08-11 15:17:56 +02:00
build_holds_queue.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cancel_expired_holds.pl Bug 17600: (follow-up) Fully qualify routine in cancel_expired_holds.pl 2021-07-30 15:53:18 +02:00
cancel_unfilled_holds.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
holds_reminder.pl Bug 31540: Exclude expired holds from the reminder job 2022-12-14 10:43:15 +01:00