Bug 7639: add option to forgive overdue fines when declaring items lost
authorMeenakshi.R <meenakshi.r@osslabs.biz>
Fri, 6 Jul 2012 05:12:50 +0000 (10:42 +0530)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 17 Sep 2013 15:10:46 +0000 (15:10 +0000)
commit0005f6bad36319e11a1b0c561403e75758a803af
treeb4b7fa48b8c6b153bb7333937348b0c75b87ee7c
parent85a8df4ca12d9bad0079618353ce8dcbf14da987
Bug 7639: add option to forgive overdue fines when declaring items lost

This patch adds functionality to forgive overdue fine when an item is
set to lost status.  Fines are forgiven only when the syspref
WhenLostForgiveFine is set to yes. Item can be set to lost status from:

- catalogue/moredetail.pl
- cataloguing/additem.pl
- tools/batchMod.pl
- misc/cronjobs/longoverdue.pl

Changed subroutine C4::Circulation::LostItem to forgive fines on the
item depending on the value of syspref WhenLostForgiveFine. This
routine is currently used to return an item and charge a replacement
cost.

Also added a new syspref in C4::Circulation::LostItem -
WhenLostChargeReplacementFee.  The replacement fee will now be charged
only if this syspref is set to yes.  The default value of the
WhenLostChargeReplacementFee is yes, meaning that current behavior
will not change during upgrade.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Alex Hatley <alexh@cctexas.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Testing notes on last patch in series.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Circulation.pm
catalogue/updateitem.pl
cataloguing/additem.pl
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
misc/cronjobs/longoverdue.pl
tools/batchMod.pl