--ABS-53261/ ABS-57050

COMMENT ON COLUMN PACKINGNOTE.ORIGIN
  IS '0 = Generated based on Order 1 = Manually added 2 = Generated based on Outscan 3 = Quantity Correction Ticket 4 = Stock Delivery Note 5 = Special Order 6 = Bulk Note 7 = Bin Note 8 = Transfer Weights 9 = Import from DW 10 = Mounting Order 11 = Sales Order 12 = Credit Note 13 = Residential Delivery Note 14 = MultiRead Shipment 15 = Charge To Product Process 16 = Customer Packing Note';

ALTER TABLE PACKINGNOTE
  DROP CONSTRAINT PNORIGIN_VALID1_1;
  
ALTER TABLE PACKINGNOTE
  ADD CONSTRAINT PNORIGIN_VALID1_1
  CHECK (ORIGIN BETWEEN 0 AND 16);