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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 23 Mar 2015 15:26:48 +0000 (16:26 +0100)
commit80dbe11868b7110c96c592c71da6cf1c118429fb
tree40492f18e6e3777ea3646a2ae9fddb02ff2109c5
parentc38c77ee3c0239dfcc71b08c899cf1f6eaf2e04a
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: Mason James <mtj@kohaaloha.com>
(cherry picked from commit e920b9a6813d677d86e327ea11c7ed571570f3b2)

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Overdues.pm
misc/cronjobs/fines.pl
misc/cronjobs/staticfines.pl