From 02d8fc6e78810bc9192d962681a7f084f08928ae Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 13 Nov 2009 16:20:06 +0000 Subject: [PATCH] Added org setting for turning on/off the cap-max-circ-fines-at-item-price functionality git-svn-id: svn://svn.open-ils.org/ILS/trunk@14900 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 8 ++++++++ .../Pg/upgrade/0080.data.org-setting-max-fine-price-cap.sql | 13 +++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0080.data.org-setting-max-fine-price-cap.sql diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 8e18b2b46f..e20f1b72f6 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0079'); -- senator +INSERT INTO config.upgrade_log (version) VALUES ('0080'); -- berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 7e982f8156..243246a1b9 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2476,3 +2476,11 @@ INSERT INTO config.org_unit_setting_type (name, label, description, datatype, fm 'ccs', ); +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.max_fine.cap_at_price', + oils_i18n_gettext('circ.max_fine.cap_at_price', 'Circ: Cap Max Fine at Item Price', 'coust', 'label'), + oils_i18n_gettext('circ.max_fine.cap_at_price', 'This prevents the system from charging more than the item price in overdue fines', 'coust', 'description'), + 'bool' + ); + diff --git a/Open-ILS/src/sql/Pg/upgrade/0080.data.org-setting-max-fine-price-cap.sql b/Open-ILS/src/sql/Pg/upgrade/0080.data.org-setting-max-fine-price-cap.sql new file mode 100644 index 0000000000..b55bce5641 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0080.data.org-setting-max-fine-price-cap.sql @@ -0,0 +1,13 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0080'); + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) + VALUES ( + 'circ.max_fine.cap_at_price', + oils_i18n_gettext('circ.max_fine.cap_at_price', 'Circ: Cap Max Fine at Item Price', 'coust', 'label'), + oils_i18n_gettext('circ.max_fine.cap_at_price', 'This prevents the system from charging more than the item price in overdue fines', 'coust', 'description'), + 'bool' + ); + +COMMIT; -- 2.11.0