LP#1732275 - Add Notices Data to Patron Itemsout user/cesardv/lp1732275_add_notices_data_to_Patron_Itemsout
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Mon, 18 Dec 2017 21:10:10 +0000 (16:10 -0500)
committerCesar Velez <cesar.velez@equinoxinitiative.org>
Mon, 18 Dec 2017 21:44:24 +0000 (16:44 -0500)
Prep upgrade script for new YAOUS:
'webstaff.circ.itemsout_notice_count_excludes_courtesies'

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>

Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.webstaff.circ.itemsout_notice_count_excludes_courtesies.sql [new file with mode: 0644]

index 03f992f..b89c7c2 100644 (file)
@@ -5243,6 +5243,20 @@ INSERT into config.org_unit_setting_type
       'In the Patron Bills interface, a payment attempt will warn if the amount exceeds the value of this setting.',
       'coust', 'description'),
     'currency', null)
+,( 'webstaff.circ.itemsout_notice_count_excludes_courtesies', 'circ',
+    oils_i18n_gettext(
+        'webstaff.circ.itemsout_notice_count_excludes_courtesies',
+        'Exclude Courtesy Notices from Patrons Itemsout Notices Count',
+        'coust',
+        'label'
+    ),
+    oils_i18n_gettext(
+        'webstaff.circ.itemsout_notice_count_excludes_courtesies',
+        'Exclude Courtesy Notices from Patrons Itemsout Notices Count',
+        'coust',
+        'description'
+    ),
+    'bool', null)
 ;
 
 UPDATE config.org_unit_setting_type
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.webstaff.circ.itemsout_notice_count_excludes_courtesies.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.webstaff.circ.itemsout_notice_count_excludes_courtesies.sql
new file mode 100644 (file)
index 0000000..dd43cfd
--- /dev/null
@@ -0,0 +1,9 @@
+BEGIN;
+
+-- SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
+
+INSERT into config.org_unit_setting_type (name, label, grp, description, datatype) 
+values ('webstaff.circ.itemsout_notice_count_excludes_courtesies','Exclude Courtesy Notices from Patrons Itemsout Notices Count',
+    'circ', 'Exclude Courtesy Notices from Patron Itemsout Notices Count', 'bool');
+
+COMMIT;