]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/XXXX.data.grace_period_extend.sql
Grace period auto extension and backdate awareness
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / XXXX.data.grace_period_extend.sql
1 INSERT INTO config.org_unit_setting_type(name, grp, label, description, datatype) VALUES
2
3 ( 'circ.grace.extend', 'circ',
4     oils_i18n_gettext('circ.grace.extend',
5         'Auto-Extend Grace Periods',
6         'coust', 'label'),
7     oils_i18n_gettext('circ.grace.extend',
8         'When enabled grace periods will auto-extend. By default this will be only when they are a full day or more and end on a closed date, though other options can alter this.',
9         'coust', 'description'),
10     'bool', null)
11
12 ,( 'circ.grace.extend.all', 'circ',
13     oils_i18n_gettext('circ.grace.extend.all',
14         'Auto-Extending Grace Periods extend for all closed dates',
15         'coust', 'label'),
16     oils_i18n_gettext('circ.grace.extend.all',
17         'If enabled and Grace Periods auto-extending is turned on grace periods will extend past all closed dates they intersect, within hard-coded limits. This basically becomes "grace periods can only be consumed by closed dates".',
18         'coust', 'description'),
19     'bool', null)
20
21 ,( 'circ.grace.extend.into_closed', 'circ',
22     oils_i18n_gettext('circ.grace.extend.into_closed',
23         'Auto-Extending Grace Periods include trailing closed dates',
24         'coust', 'label'),
25     oils_i18n_gettext('circ.grace.extend.into_closed',
26          'If enabled and Grace Periods auto-extending is turned on grace periods will include closed dates that directly follow the last day of the grace period, to allow a backdate into the closed dates to assume "returned after hours on the last day of the grace period, and thus still within it" automatically.',
27         'coust', 'description'),
28     'bool', null);