Bug 30278 - Auto renewal should be moved to an object method
Summary: Auto renewal should be moved to an object method
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: master
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 30222
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-11 13:36 UTC by Nick Clemens
Modified: 2022-05-23 00:31 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens 2022-03-11 13:36:15 UTC
Bug 29381 and bug 30222 both required reviewing the conditions under which auto renewal notices are sent. It would be better if the renewals were handled by a unit tested subroutine

We should have:
Koha::Patron->auto_renew_checkouts
Koha::Checkouts->filter_by_auto_renew->renew

the renewal can report back on the status and then notify patron, depending on settings