JBAS-944 update ACQ cancel reason labels
authorBill Erickson <berickxx@gmail.com>
Wed, 28 Oct 2015 20:52:02 +0000 (16:52 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/2.5-to-2.7-upgrade.sql

index 5c99ab4..3104a1b 100644 (file)
@@ -6666,6 +6666,14 @@ UPDATE acq.cancel_reason
     SET label = oils_i18n_gettext(1,'Delayed: Backorder', 'acqcr', 'label')
     WHERE id = 1283 AND label = 'Backorder quantity';
 
+-- KCLS CUSTOM
+-- Go ahead and update all cancel reasons
+
+UPDATE acq.cancel_reason SET label = 'Canceled: ' || label 
+    WHERE keep_debits is FALSE AND label NOT ILIKE 'cancel%';
+
+UPDATE acq.cancel_reason SET label = 'Delayed: ' || label 
+    WHERE keep_debits is TRUE AND label NOT ILIKE 'delay%';
 
 -- PO template mods used to live here.