Bug 26147

Summary: Add script to recalculate due dates after changes to the calendar
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall, lisettepalouse+koha, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Andrew Fuerste-Henry 2020-08-05 15:07:45 UTC
With the pandemic, we saw a lot of libraries put a lot of near-future closures into their calendars. For libraries where useDaysMode prevents due dates on closed days, this meant a lot of checkouts with due dates that wouldn't have been allowed were the closures in place before the checkout happened. It would be helpful to have a command line script to recalculate due dates based on the current calendar and the useDaysMode syspref.
Comment 1 Martin Renvoize (ashimema) 2020-11-20 11:25:14 UTC
Would you also need to notify the patrons that their due dates have been extended due to updated closures perhaps?
Comment 2 Andrew Fuerste-Henry 2020-11-20 13:36:40 UTC
If this theoretical script creates a clear data trail of the change somewhere, then one could easily enough use the patron_emailer cron to generate a notice for this without having to code a whole new thing for it.