[open-ils-commits] r14900 - in trunk/Open-ILS/src/sql/Pg: . upgrade (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Nov 13 11:20:08 EST 2009


Author: erickson
Date: 2009-11-13 11:20:06 -0500 (Fri, 13 Nov 2009)
New Revision: 14900

Added:
   trunk/Open-ILS/src/sql/Pg/upgrade/0080.data.org-setting-max-fine-price-cap.sql
Modified:
   trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
   trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:

Added org setting for turning on/off the cap-max-circ-fines-at-item-price functionality



Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2009-11-13 14:15:07 UTC (rev 14899)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2009-11-13 16:20:06 UTC (rev 14900)
@@ -51,7 +51,7 @@
     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,

Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2009-11-13 14:15:07 UTC (rev 14899)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2009-11-13 16:20:06 UTC (rev 14900)
@@ -2476,3 +2476,11 @@
         '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' 
+    );
+

Added: trunk/Open-ILS/src/sql/Pg/upgrade/0080.data.org-setting-max-fine-price-cap.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0080.data.org-setting-max-fine-price-cap.sql	                        (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0080.data.org-setting-max-fine-price-cap.sql	2009-11-13 16:20:06 UTC (rev 14900)
@@ -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;



More information about the open-ils-commits mailing list