Fines fixes: apparent problems with fines prevent processing.
authorJoe Atzberger <joe.atzberger@liblime.com>
Tue, 26 Aug 2008 03:57:01 +0000 (22:57 -0500)
committerChris Cormack <chris@bigballofwax.co.nz>
Thu, 3 Sep 2009 23:12:41 +0000 (11:12 +1200)
commit4c540598446082c191f6ba5f88316bdf3da0cd32
tree34d91f6a9eec7c722d37b7efc67bf22524f7592f
parent04d8cfd65593eef42541a0510ae2d5b21b2ba962
Fines fixes: apparent problems with fines prevent processing.

CalcFine returned values that mismatched expectations in fines.pl.

fines.pl refactored: added debugging, prevent needless recreation of
Calendar objects by storing them in hash by branch.
Still outstanding problems with fines, including the output of a field
that has no other references in Koha (so is always undef) and the
incorrect description of FinesMode.

Calendar exported "new" erroneously.  I also cleaned up the queries to
avoid needlessly compiling additional statement handles.

Please test and consider application to 3.0 maintenance.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
misc/cronjobs/fines.pl