]> git.koha-community.org Git - koha.git/commit
Bug 34924: Add 'auto_renew_final' and 'auto_unseen_final' return to CanBookBeRenewed
authorNick Clemens <nick@bywatersolutions.com>
Tue, 26 Sep 2023 15:03:45 +0000 (15:03 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Oct 2023 14:02:46 +0000 (11:02 -0300)
commit7ecb05f4ec8641daf16eeb77bc3e32a817f6df80
tree1775bab37cc5aba41f59c68162884f6589714a20
parent95f6015d433892c83edef6d821fcc7c4dfeef9bb
Bug 34924: Add 'auto_renew_final' and 'auto_unseen_final' return to CanBookBeRenewed

There is a desire for auto_renewals to treat the final renewal differently. We would like to notify the patron of the final renewal - but not again when the next renewal fails. This patch adds the new return value and tests.

To test:
prove -v t/db_dependent/Circulation.t

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Circulation.pm
misc/cronjobs/automatic_renewals.pl
t/db_dependent/Circulation.t