seed/upgrade for YAOUS: "forgive" lost billings
authorJeff Godin <jgodin@tadl.org>
Tue, 6 Dec 2011 18:49:40 +0000 (13:49 -0500)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 16 Jan 2013 16:44:48 +0000 (11:44 -0500)
seed and upgrade script for new OU settings, previously described:

circ.forgive_overdue_on_lost
circ.forgive_lost_on_checkin
circ.forgive_lost_proc_fee_on_checkin

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.lost_forgive_not_void.sql [new file with mode: 0644]

index 8805181..d626c1d 100644 (file)
@@ -3527,6 +3527,33 @@ INSERT into config.org_unit_setting_type
         'coust', 'description'),
     'bool', null)
 
+,( 'circ.forgive_lost_on_checkin', 'circ',
+    oils_i18n_gettext('circ.forgive_lost_on_checkin',
+        'Forgive lost item billing when returned',
+        'coust', 'label'),
+    oils_i18n_gettext('circ.forgive_lost_on_checkin',
+        'Forgive lost item billing when returned',
+        'coust', 'description'),
+    'bool', null)
+
+,( 'circ.forgive_lost_proc_fee_on_checkin', 'circ',
+    oils_i18n_gettext('circ.forgive_lost_proc_fee_on_checkin',
+        'Forgive processing fee on lost item return',
+        'coust', 'label'),
+    oils_i18n_gettext('circ.forgive_lost_proc_fee_on_checkin',
+        'Forgive processing fee when lost item returned',
+        'coust', 'description'),
+    'bool', null)
+
+,( 'circ.forgive_overdue_on_lost', 'finance',
+    oils_i18n_gettext('circ.forgive_overdue_on_lost',
+        'Forgive overdue fines when items are marked lost',
+        'coust', 'label'),
+    oils_i18n_gettext('circ.forgive_overdue_on_lost',
+        'Forgive overdue fines when items are marked lost',
+        'coust', 'description'),
+    'bool', null)
+
 ,( 'circ.void_lost_on_checkin', 'circ',
     oils_i18n_gettext('circ.void_lost_on_checkin',
         'Void lost item billing when returned',
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lost_forgive_not_void.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lost_forgive_not_void.sql
new file mode 100644 (file)
index 0000000..170064d
--- /dev/null
@@ -0,0 +1,43 @@
+-- Evergreen DB patch XXXX.data.lost_forgive_not_void.sql
+--
+-- Insert new org unit settings for Forgive (not void)
+-- regarding Lost items
+--
+BEGIN;
+
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class ) VALUES
+
+( 'circ.forgive_lost_on_checkin', 'circ',
+    oils_i18n_gettext('circ.forgive_lost_on_checkin',
+        'Forgive lost item billing when returned',
+        'coust', 'label'),
+    oils_i18n_gettext('circ.forgive_lost_on_checkin',
+        'Forgive lost item billing when returned',
+        'coust', 'description'),
+    'bool', null)
+
+,( 'circ.forgive_lost_proc_fee_on_checkin', 'circ',
+    oils_i18n_gettext('circ.forgive_lost_proc_fee_on_checkin',
+        'Forgive processing fee on lost item return',
+        'coust', 'label'),
+    oils_i18n_gettext('circ.forgive_lost_proc_fee_on_checkin',
+        'Forgive processing fee when lost item returned',
+        'coust', 'description'),
+    'bool', null)
+
+,( 'circ.forgive_overdue_on_lost', 'finance',
+    oils_i18n_gettext('circ.forgive_overdue_on_lost',
+        'Forgive overdue fines when items are marked lost',
+        'coust', 'label'),
+    oils_i18n_gettext('circ.forgive_overdue_on_lost',
+        'Forgive overdue fines when items are marked lost',
+        'coust', 'description'),
+    'bool', null)
+;
+
+COMMIT;