Bug 30278

Summary: Auto renewal should be moved to an object method
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: dcook, gmcharlt, kyle.m.hall, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30751
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29381
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 30222    
Bug Blocks:    

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