Bug 17952 - Lost items not skipped by overdue_notices.pl
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 14:43:24 +0000 (14:43 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 8 May 2017 12:55:59 +0000 (08:55 -0400)
commit3ef6d2d5153772cd1701005eef7e9a94bf901c32
tree3ecc0b9bb8216358dc241ad385fab254683a319a
parent0e0897a7e6d2940a496168485e2219d8efa37913
Bug 17952 - Lost items not skipped by overdue_notices.pl

If a library does not use --mark-returned when running longoverdue.pl,
all those lost item checkouts are selected by overdue_notices.pl.
This causes much unnecessary overhead. In addition Koha::Calendar is
instantiated many times for each branchcode which is not necessary.

Test Plan:
1) Run overdue_notices.pl, note output
2) Apply this patch
3) Run overdue_notices.pl again, note output is the same

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jane Leven <jleven@camdencountylibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/cronjobs/overdue_notices.pl