11 lines
749 B
JSON
11 lines
749 B
JSON
{
|
|
"header": {
|
|
"version": 1,
|
|
"type": "record"
|
|
},
|
|
"body": {
|
|
"record1": {
|
|
"<1>": "CurValue = @CtrlEntId->value\r\nReceivedDate = iconv( .received_date->text, 'D' )\r\nCommitDate = ''\r\n\r\nif ( ReceivedDate <> '' ) then\r\n\tbegin case\r\n\t case CurValue = 'P'\r\n\t * PRIORITY SO ADD TWO DAYS\r\n\t .commit_date->text = oconv( ReceivedDate+2, 'D2/' )\r\n\t case CurValue = 'E'\r\n\t * EXPRESS SO ADD SEVEN DAYS \r\n\t .commit_date->text = oconv( ReceivedDate+7, 'D2/' )\r\n\t case CurValue = 'F'\r\n\t * FIRST IN FIRST OUT SO ADD 14 DAYS\r\n\t .commit_date->text = oconv( ReceivedDate+14, 'D2/' )\r\n\tend case\r\nend\r\nRETURN 1"
|
|
}
|
|
}
|
|
} |