LP#1904244: add grid config settings
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 29 Mar 2021 02:50:42 +0000 (22:50 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 12 Aug 2021 19:29:26 +0000 (15:29 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/YYYY.data.acq-admin-grid-settings.sql [new file with mode: 0644]

index 0946e48..df6bda7 100644 (file)
@@ -21732,3 +21732,56 @@ VALUES (
     (SELECT id FROM permission.perm_list WHERE code = 'ADMIN_CREDIT_CARD_PROCESSING'),
     (SELECT id FROM permission.perm_list WHERE code = 'VIEW_CREDIT_CARD_PROCESSING')
 );
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.grid.acq.fund.fund_debit', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.fund.fund_debit',
+        'Grid Config: eg.grid.acq.fund.fund_debit',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.acq.fund.fund_transfer', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.fund.fund_transfer',
+        'Grid Config: eg.grid.acq.fund.fund_transfer',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.acq.fund.fund_allocation', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.fund.fund_allocation',
+        'Grid Config: eg.grid.acq.fund.fund_allocation',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.acq.fund', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.acq.fund',
+        'Grid Config: eg.grid.admin.acq.fund',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.acq.funding_source', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.acq.funding_source',
+        'Grid Config: eg.grid.admin.acq.funding_source',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.acq.funding_source.fund_allocation', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.funding_source.fund_allocation',
+        'Grid Config: eg.grid.acq.funding_source.fund_allocation',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.acq.funding_source.credit', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.funding_source.credit',
+        'Grid Config: eg.grid.acq.funding_source.credit',
+        'cwst', 'label'
+    )
+);
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.acq-admin-grid-settings.sql b/Open-ILS/src/sql/Pg/upgrade/YYYY.data.acq-admin-grid-settings.sql
new file mode 100644 (file)
index 0000000..c29c099
--- /dev/null
@@ -0,0 +1,55 @@
+BEGIN;
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.grid.acq.fund.fund_debit', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.fund.fund_debit',
+        'Grid Config: eg.grid.acq.fund.fund_debit',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.acq.fund.fund_transfer', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.fund.fund_transfer',
+        'Grid Config: eg.grid.acq.fund.fund_transfer',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.acq.fund.fund_allocation', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.fund.fund_allocation',
+        'Grid Config: eg.grid.acq.fund.fund_allocation',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.acq.fund', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.acq.fund',
+        'Grid Config: eg.grid.admin.acq.fund',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.acq.funding_source', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.acq.funding_source',
+        'Grid Config: eg.grid.admin.acq.funding_source',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.acq.funding_source.fund_allocation', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.funding_source.fund_allocation',
+        'Grid Config: eg.grid.acq.funding_source.fund_allocation',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.acq.funding_source.credit', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.acq.funding_source.credit',
+        'Grid Config: eg.grid.acq.funding_source.credit',
+        'cwst', 'label'
+    )
+);
+
+COMMIT;