Advertisement
matthewpoer

MIS/TMS Status Map - Adjusted Default

May 8th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1.         /*
  2.          * Map the SLX Status Picklist to the TMS StatusCode/SubStatusCode values
  3.          * available SLX values are Open, In Process, WEB_REG, Closed and Completed
  4.          * available TMS values are ACTIV, CANCL, CLOSE, CMPLT, and PENDG
  5.          * Each TMS StatusCode has a particular set of SubStatusCodes that are allowed with it.
  6.          */    
  7.         switch($this->tms_object->StatusCode){
  8.             case 'Open':
  9.                 $this->tms_object->StatusCode = 'ACTIV';
  10.                 $this->tms_object->SubStatusCode = 'ISSUE';
  11.                 break;
  12.             case 'In Process':
  13.                 $this->tms_object->StatusCode = 'PENDG';
  14.                 $this->tms_object->SubStatusCode = 'REQST';
  15.                 break;
  16.             case 'Closed':
  17.             case 'Completed':
  18.                 $this->tms_object->StatusCode = 'CMPLT';
  19.                 $this->tms_object->SubStatusCode = 'CHANG';
  20.                 break;
  21.             default:
  22.                 $this->tms_object->StatusCode = 'CANCL';
  23.                 $this->tms_object->SubStatusCode = 'NOCHG';
  24.                 break;
  25.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement