[Koha-bugs] [Bug 13035] Overdue notices send notices for due date in future.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 7 14:47:43 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13035

--- Comment #1 from Rafal Kopaczka <rkopaczka at afm.edu.pl> ---
Created attachment 32033
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32033&action=edit
Bug 13035: Overdue notices send notices for due date in future.

Overdue notices, script uses method days_between which returns always
positive value of days, no mater if due_date is higher or lower from
date_to_run. This causes overdue notices to be send for real overdue and
for checkouts with due date in future, which have same days_between as
in notice triggers.

To reproduce:
1. Set up overdue notice triggers for eg. 2 day.
2. Checkout items for 2 borrowers first gets item with due date 2 days
in past and second gets 2 days in future.
3. run ./misc/cronjobs/overdue_notices.pl -n -t
4. watch that notices was generated for both of them.

To test:
1. Repeat steps 1,2
2. Apply patch
3. run ./misc/cronjobs/overdue_notices.pl -n -t
4. should be 1 notice for borrower with overdue item.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list