https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18064
Thibaud Guillot (thibaud_g) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #159088|0 |1 is obsolete| | --- Comment #45 from Thibaud Guillot (thibaud_g) <[email protected]> --- Created attachment 199197 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199197&action=edit Bug 18064: Add syspref to launch longOverdue script with calendar support The problem here is that the longOverdue script does not support calendars and when libraries set their holidays, long overdues do not take this into account. For example, during the covid pandemic, some libraries were closed for days, maybe months, but longOverdue didn't care and set "lost" or other values on the items. The fix computes open (business) days per item using the calendar of its governing library (per LostChargesControl), and skips items whose open-day count since the due date has not yet reached the configured threshold. Test plan: 1) Have at least 2 libraries 2) Go to Tools/Calendar and add special holidays on one library only 3) Check out items from both libraries with due dates old enough to trigger longoverdue 4) Run: perl misc/cronjobs/longoverdue.pl -v --lost 30=1 Items from both libraries appear (calendar ignored, holidays have no effect) 5) Apply this patch and run updatedatabase 6) Set system preference LongOverdueNoticeCalendar to "Use calendar" 7) Run the same command again Items from the library with enough holidays to bring their open-day count below the threshold are skipped; items from the other library are still processed 8) Run with --confirm to apply changes Sponsored-by: Biblibre -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
