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: Main
Hardware: All All
: P5 - low normal
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 (kidclamp)
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:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 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