From f6dd423bbe58151001ab3065cd3729afe7bbb7ac Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 28 Mar 2021 22:50:42 -0400 Subject: [PATCH] LP#1904244: add grid config settings Signed-off-by: Galen Charlton Signed-off-by: Ruth Frasur Signed-off-by: Bill Erickson --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 53 +++++++++++++++++++++ .../upgrade/YYYY.data.acq-admin-grid-settings.sql | 55 ++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 Open-ILS/src/sql/Pg/upgrade/YYYY.data.acq-admin-grid-settings.sql 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 0946e4875c..df6bda7ae1 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -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 index 0000000000..c29c099329 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/YYYY.data.acq-admin-grid-settings.sql @@ -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; -- 2.11.0