[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
Mon Oct 23 19:59:49 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34924
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #157290|0 |1
is obsolete| |
Attachment #157291|0 |1
is obsolete| |
Attachment #157292|0 |1
is obsolete| |
--- Comment #11 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 157687
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157687&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