]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Option to generate lacking overdues on lost checkin
authorBill Erickson <berick@esilibrary.com>
Fri, 24 Jun 2011 15:27:26 +0000 (11:27 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 27 Jun 2011 17:54:26 +0000 (13:54 -0400)
commit10443c06c64136be02438901f2ca022e905a8dc3
tree86be038027a180b5e5363b58508d29a9d3276e7e
parent4e53a6eb2355f3eda8828371d954d66e7efc5c65
Option to generate lacking overdues on lost checkin

New org unit setting "circ.lost.generate_overdue_on_checkin".

This org unit setting enables retroactive overdue fine generation for
lost item checkin.  When enabled, the system will generate overdue fines
starting from the date of the last created overdue fine for the
circulation and working its way up to the checkin time or stopping at
the max fine amount (consistent with regular overdue fine generation).

This differs from the existing org unit setting
"circ.restore_overdue_on_lost_return", which only un-voids existing
overdue fines.

Consider an item whose due date is the 1st, that gets marked lost on the
7th, then checked in on the 14th.  If set,
"circ.restore_overdue_on_lost_return" would un-void the fines created up
to the 7th and "circ.lost.generate_overdue_on_checkin" would create new
overdue fines from the 7th up to the 14th (or up to the max fine
amount).

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Const.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql