[open-ils-commits] r15483 - in trunk/Open-ILS/src/sql/Pg: . upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 9 12:35:32 EST 2010
Author: scottmk
Date: 2010-02-09 12:35:29 -0500 (Tue, 09 Feb 2010)
New Revision: 15483
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0157.data.fund-spending-limits.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
Adding org unit settings for fund spending limits.
See ticket 4201.
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0157.data.fund-spending-limits.sql
M Open-ILS/src/sql/Pg/950.data.seed-values.sql
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-09 17:21:06 UTC (rev 15482)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-09 17:35:29 UTC (rev 15483)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0156'); -- senator
+INSERT INTO config.upgrade_log (version) VALUES ('0157'); -- Scott McKellar
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 2010-02-09 17:21:06 UTC (rev 15482)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-02-09 17:35:29 UTC (rev 15483)
@@ -3828,3 +3828,20 @@
'bool'
);
+-- Org unit settings for fund spending limits
+
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
+VALUES (
+ 'acq.fund.balance_limit.warn',
+ oils_i18n_gettext('acq.fund.balance_limit.warn', 'Fund Spending Limit for Warning', 'coust', 'label'),
+ oils_i18n_gettext('acq.fund.balance_limit.warn', 'When the amount remaining in the fund, including spent money and encumbrances, goes below this percentage, attempts to spend from the fund will result in a warning to the staff.', 'coust', 'descripton'),
+ 'integer'
+);
+
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
+VALUES (
+ 'acq.fund.balance_limit.block',
+ oils_i18n_gettext('acq.fnd.balance_limit.block', 'Fund Spending Limit for Block', 'coust', 'label'),
+ oils_i18n_gettext('acq.fund.balance_limit.block', 'When the amount remaining in the fund, including spent money and encumbrances, goes below this percentage, attempts to spend from the fund will be blocked.', 'coust', 'description'),
+ 'integer'
+);
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0157.data.fund-spending-limits.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0157.data.fund-spending-limits.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0157.data.fund-spending-limits.sql 2010-02-09 17:35:29 UTC (rev 15483)
@@ -0,0 +1,21 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0157'); -- Scott McKellar
+
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
+VALUES (
+ 'acq.fund.balance_limit.warn',
+ oils_i18n_gettext('acq.fund.balance_limit.warn', 'Fund Spending Limit for Warning', 'coust', 'label'),
+ oils_i18n_gettext('acq.fund.balance_limit.warn', 'When the amount remaining in the fund, including spent money and encumbrances, goes below this percentage, attempts to spend from the fund will result in a warning to the staff.', 'coust', 'descripton'),
+ 'integer'
+);
+
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
+VALUES (
+ 'acq.fund.balance_limit.block',
+ oils_i18n_gettext('acq.fnd.balance_limit.block', 'Fund Spending Limit for Block', 'coust', 'label'),
+ oils_i18n_gettext('acq.fund.balance_limit.block', 'When the amount remaining in the fund, including spent money and encumbrances, goes below this percentage, attempts to spend from the fund will be blocked.', 'coust', 'description'),
+ 'integer'
+);
+
+COMMIT;
More information about the open-ils-commits
mailing list