LP#2006971: Custom system penalties
authorMike Rylander <mrylander@gmail.com>
Wed, 14 Dec 2022 17:43:03 +0000 (12:43 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 15 Mar 2023 16:28:23 +0000 (12:28 -0400)
commit969120023e632c7c8bfb66dc86f580db1f43e6d5
treee43589f4e64e7068fcdb50b5fb54b6a2942cfdcf
parent13adaa938b5621f28ee1e30d200d9cb9787f23a3
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>
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]