--ABS-105424/ ABS-107168

------------ ROUTECONTROL TABLE ---------------
COMMENT ON COLUMN ROUTECONTROL.SETTLEMENTSTATUS
  IS '1 = Not started 2 = In progress 3 = Completed 4 = Done, there are still unsettled invoices 5 = Error (only used by Automatic Settlement process)';

ALTER TABLE ROUTECONTROL
  DROP CONSTRAINT SETTLEMENTSTATUS_VALID;
  
ALTER TABLE ROUTECONTROL
  ADD CONSTRAINT CHK_ROUTECONTROL_SETTSTATUS
  CHECK (SETTLEMENTSTATUS IN (1, 2, 3 , 4, 5));
