]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0854.data.min_max_prices.sql
LP2042879 Shelving Location Groups Admin accessibility
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0854.data.min_max_prices.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('0854', :eg_version);
4
5 INSERT INTO permission.perm_list ( id, code, description ) VALUES (
6     553,
7     'UPDATE_ORG_UNIT_SETTING.circ.min_item_price',
8     oils_i18n_gettext(
9         553,
10         'UPDATE_ORG_UNIT_SETTING.circ.min_item_price',
11         'ppl',
12         'description'
13     )
14 ), (
15         554,
16     'UPDATE_ORG_UNIT_SETTING.circ.max_item_price',
17     oils_i18n_gettext(
18         554,
19         'UPDATE_ORG_UNIT_SETTING.circ.max_item_price',
20         'ppl',
21         'description'
22     )
23 );
24
25 INSERT into config.org_unit_setting_type
26     ( name, grp, label, description, datatype, fm_class )
27 VALUES (
28     'circ.min_item_price',
29         'finance',
30     oils_i18n_gettext(
31         'circ.min_item_price',
32         'Minimum Item Price',
33         'coust', 'label'),
34     oils_i18n_gettext(
35         'circ.min_item_price',
36         'When charging for lost items, charge this amount as a minimum.',
37         'coust', 'description'),
38     'currency',
39     NULL
40 ), (
41     'circ.max_item_price',
42     'finance',
43     oils_i18n_gettext(
44         'circ.max_item_price',
45         'Maximum Item Price',
46         'coust', 'label'),
47     oils_i18n_gettext(
48         'circ.max_item_price',
49         'When charging for lost items, limit the charge to this as a maximum.',
50         'coust', 'description'),
51     'currency',
52     NULL
53 );
54
55 COMMIT;