Bug 16798

Summary: automatic_renewals.pl should run before overdues and fines are generated
Product: Koha Reporter: Kyle M Hall <kyle>
Component: Architecture, internals, and plumbingAssignee: Kyle M Hall <kyle>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: katrin.fischer
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 16798 - automatic_renewals.pl should run before overdues and fines are generated

Description Kyle M Hall 2016-06-22 11:28:02 UTC
Unless an auto_renew item's circ rule has a "no renewal before" line set, it will only auto-renew at the point where the item is technically overdue. However, automatic_renewal.pl in etc/cron.daily/koha-common is set to run *after* all those cronjobs!
Comment 1 Kyle M Hall 2016-06-22 11:31:43 UTC
Created attachment 52679 [details] [review]
Bug 16798 - automatic_renewals.pl should run before overdues and fines are generated

Unless an auto_renew item's circ rule has a "no renewal before" line
set, it will only auto-renew at the point where the item is technically
overdue. However, automatic_renewal.pl in etc/cron.daily/koha-common is
set to run *after* all those cronjobs!

Test Plan:
1) On a package installation, set up an item to auto_renew with no
   "no renewal before" rule.
2) On the morning it is autorenewed it should also have a fine
3) Change the cronjob order to that of this patch
4) Repeat step 1
5) On the morning it is autorenewed it should not have a fine
Comment 2 Katrin Fischer 2016-06-22 20:34:04 UTC

*** This bug has been marked as a duplicate of bug 11144 ***