(1, 't', 1246, oils_i18n_gettext(1246, 'Delayed: Pieces Delivered', 'acqcr', 'label'),
oils_i18n_gettext(1246, 'Number of pieces actually received at the final destination.', 'acqcr', 'description')),
(1, 't', 1283, oils_i18n_gettext(1283, 'Delayed: Backorder', 'acqcr', 'label'),
- oils_i18n_gettext(1283, 'The quantity of goods that is on back-order.', 'acqcr', 'description'));
+ oils_i18n_gettext(1283, 'The quantity of goods that is on back-order.', 'acqcr', 'description')),
+(1, 'f',( 85+1200), oils_i18n_gettext(1285, 'Canceled: By Vendor', 'acqcr', 'label'),
+ oils_i18n_gettext(1285, 'Line item canceled by vendor', 'acqcr', 'description'));
INSERT INTO config.global_flag (name, label, enabled)
VALUES (
--- /dev/null
+BEGIN;
+
+-- INSERT INTO config.upgrade_log (version) VALUES ('xxxx');
+
+-- LP#1550495 - Add Baker&Taylor EDI Quantity Cancel Code
+-- Insert EDI Cancel Reason 85 (1200 + 85 = 1285) if it doesn't already exist
+INSERT INTO acq.cancel_reason
+ (org_unit, keep_debits, id, label, description)
+ SELECT
+ 1, 'f',( 85+1200),
+ oils_i18n_gettext(1285, 'Canceled: By Vendor', 'acqcr', 'label'),
+ oils_i18n_gettext(1285, 'Line item canceled by vendor', 'acqcr', 'description')
+ WHERE NOT EXISTS (
+ SELECT 1 FROM acq.cancel_reason where id=(85+1200)
+ );
+
+
+COMMIT;
--- /dev/null
+Add Acquisitions Cancel Reason 85 for Baker&Taylor EDI
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Baker & Taylor send back a quantity status code of 85
+when a line item is canceled when using EDI. That code
+is now included in the system so those cancelations get
+properly registered.