[Koha-bugs] [Bug 34924] Add ability to send 'final auto renewal notice'

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 26 21:15:42 CEST 2023


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 156239
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=156239&action=edit
Bug 34924: Add Koha::Checkout->attempt_auto_renew

This patch moves the actual renewal out of the auto_renewals cronjob script and
into the object and adds tests. The logic for notices is still handled in the
script.

To test:
1 - prove -v t/db_dependent/Koha/Checkouts.t
2 - Add a circ rule with auto_renew checked
3 - Checkout an item to a patron and set due date in the past
4 - Checkout an item to a patron and set due date in the future
5 - perl misc/cronjobs/automatic_renewals.pl -v
6 - Confirm one would be renewed and the other is too_soon
7 - perl misc/cronjobs/automatic_renewals.pl -v --confirm
8 - Confirm the expected issue is successfully renewed

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


More information about the Koha-bugs mailing list