/* * Map the SLX Status Picklist to the TMS StatusCode/SubStatusCode values * available SLX values are Open, In Process, WEB_REG, Closed and Completed * available TMS values are ACTIV, CANCL, CLOSE, CMPLT, and PENDG * Each TMS StatusCode has a particular set of SubStatusCodes that are allowed with it. */ switch($this->tms_object->StatusCode){ case 'Open': $this->tms_object->StatusCode = 'ACTIV'; $this->tms_object->SubStatusCode = 'ISSUE'; break; case 'In Process': $this->tms_object->StatusCode = 'PENDG'; $this->tms_object->SubStatusCode = 'REQST'; break; case 'Closed': case 'Completed': $this->tms_object->StatusCode = 'CMPLT'; $this->tms_object->SubStatusCode = 'CHANG'; break; default: $this->tms_object->StatusCode = 'ACTIV'; $this->tms_object->SubStatusCode = 'ISSUE'; break; }