LP#2006971: Custom system penalties
authorMike Rylander <mrylander@gmail.com>
Wed, 14 Dec 2022 17:43:03 +0000 (12:43 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 3 May 2023 19:38:55 +0000 (15:38 -0400)
commit1080e809c6b3968db5574b02b727fa3180a745a5
tree72d7c5969635b162ba4c83a360e70f25e9793330
parentcadb7351a932247e0ee9219217546ae09d4d0d4a
LP#2006971: Custom system penalties

This development creates a set of Library Settings that a staff
member with appropriate permissions can use to set a custom value
for a stock penalty according to the following workflow:

-- Create a new penalty in Standing Penalties
-- Set the desired penalty threshold in Group Penalty Thresholds
-- Use the Library Setting to associate your new penalty with a
   stock system penalty and organizational unit context.

The custom penalty will be automatically applied in place of the
stock penalty at the specified org units, when the patrons'
account meets the penalty criteria.

System penalties that can be overridden:

 * PATRON_EXCEEDS_FINES
 * PATRON_EXCEEDS_OVERDUE_COUNT
 * PATRON_EXCEEDS_CHECKOUT_COUNT
 * PATRON_EXCEEDS_LOST_COUNT
 * PATRON_EXCEEDS_LONGOVERDUE_COUNT
 * PATRON_EXCEEDS_COLLECTIONS_WARNING
 * PATRON_IN_COLLECTIONS

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Elizabeth Davis <elizabeth.davis@sparkpa.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/100.circ_matrix.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.custom_system_penalties.sql [new file with mode: 0644]