https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39631

Hammat wele <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #180925|0                           |1
        is obsolete|                            |

--- Comment #2 from Hammat wele <[email protected]> ---
Created attachment 180933
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180933&action=edit
Bug 39631: longoverdue.pl does not consider OverdueNoticeCalendar when
calculating overdue days

When the system preference OverdueNoticeCalendar is activated, the script
longoverdue.pl continues to calculate overdue duration using calendar days
instead of working days.
This creates a discrepancy with overdue_notices.pl, which correctly uses
working days for triggering overdue notices when OverdueNoticeCalendar is
enabled.
As a result, items may be marked as lost by longoverdue.pl before the final
configured overdue notice (e.g., ODUE3) has a chance to be sent.

To test

1. Set the system preference OverdueNoticeCalendar to « ignore calendar »
2. Set the following preferences:
    DefaultLongOverdueLostValue = Long Overdue
    DefaultLongOverdueDays = 15
3. Define days when the library is closed
    3.1. Go to Tools > Calendar
    3.2. Click on a Saturday (e.g., 2025-04-12) Fill Description = Saturdays,
Click on "Holiday repeated every same day of the week." and Click on Copy to
all libraries and submit
    3.3. Repeat step 3.2. by clicking on Sundays (e.g., 2025-04-13) similarly.
4. Checkout an item to a patron of category type Board, and set due date to
2025-03-29 (15 days before today).
    4.1. Click on "Show checkouts", click the barcode, and note the itemnumber.
5. Run: ./misc/cronjobs/longoverdue.pl
    --> The item should be flagged as overdue (e.g., item 378 appears in the
output).
6. Now Enable the system preference OverdueNoticeCalendar.
7. Run longoverdue.pl again:
    --> The item is still detected as overdue, even though it should not be
(due to holidays).
8. Apply the patch
9. Repeat step 7:
    --> Now, the item is not detected as overdue — correct behavior.
10. Change DefaultLongOverdueDays to 10.
11. Repeat step 7:
    -->Now, the item is detected as overdue, correctly considering holidays.

-- 
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/

Reply via email to