Bug 11872 - Lost overdue items should not generate fines
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 29 Jul 2014 16:39:15 +0000 (12:39 -0400)
committerChris Cormack <chris@bigballofwax.co.nz>
Sun, 11 Jan 2015 08:05:51 +0000 (21:05 +1300)
commit048ba66a907c081e7ac315c19a34759d1fb26b11
treed5b7c7262b87d2313bc98023b250e740d080883a
parent779b95cf44621d0755b7e03440173884e56518ba
Bug 11872 - Lost overdue items should not generate fines

An item can be marked as lost by longoverdue.pl, but left checked out to
the patron. In this case, the item will continue to accrue fines.

Test Plan:
1) Check out an item and back date it so it is overdue and should
   generate fines.
2) Mark the item as lost by either using longoverdue.pl, or just
   by setting itemlost to 1 by directly accessing the database
3) Run fines.pl
4) Note the overdue generated a fine
5) Repeat steps 1-2
6) Apply this patch
7) Run fines.pl
8) Note a fine was not generated

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 53923cbd025c163e45680c6fc985f2981e438dae)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/Overdues.pm
misc/cronjobs/fines.pl
misc/cronjobs/staticfines.pl