]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/1285.data.lp1905028.item_value_fields.sql
Stamping upgrade script
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 1285.data.lp1905028.item_value_fields.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('1285', :eg_version);
4
5 INSERT into config.org_unit_setting_type
6     (name, grp, label, description, datatype)
7     VALUES (
8         'circ.primary_item_value_field',
9         'circ',
10         oils_i18n_gettext(
11             'circ.primary_item_value_field',
12             'Use Item Price or Cost as Primary Item Value',
13             'coust',
14             'label'
15         ),
16         oils_i18n_gettext(
17             'circ.primary_item_value_field',
18             'Expects "price" or "cost" and defaults to price.  This refers to the corresponding field on the item record and gets used in such contexts as notices, max fine values when using item price caps (setting or fine rules), and long overdue, damaged, and lost billings.',
19             'coust',
20             'description'
21         ),
22         'string'
23     );
24
25 INSERT into config.org_unit_setting_type
26     (name, grp, label, description, datatype)
27     VALUES (
28         'circ.secondary_item_value_field',
29         'circ',
30         oils_i18n_gettext(
31             'circ.secondary_item_value_field',
32             'Use Item Price or Cost as Backup Item Value',
33             'coust',
34             'label'
35         ),
36         oils_i18n_gettext(
37             'circ.secondary_item_value_field',
38             'Expects "price" or "cost", but defaults to neither.  This refers to the corresponding field on the item record and is used as a second-pass fall-through value when determining an item value.  If needed, Evergreen will still look at the "Default Item Price" setting as a final fallback.',
39             'coust',
40             'description'
41         ),
42         'string'
43     );
44
45 COMMIT;