added remaining LSL2 entities
This commit is contained in:
11
LSL2/OIEVENT/LOSTFOCUS/QUOTE_OLD.EXP_DATE.json
Normal file
11
LSL2/OIEVENT/LOSTFOCUS/QUOTE_OLD.EXP_DATE.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"header": {
|
||||
"version": 1,
|
||||
"type": "record"
|
||||
},
|
||||
"body": {
|
||||
"record1": {
|
||||
"<1>": "declare function fieldcount\r\n$insert logical\r\n\r\nif .exp_date->invalue < date() then\r\n .status->value = 'E'\r\nend else\r\n NumSigsRequired = xlate( 'CONFIG', 'QUOTE_SIGS', 3, 'X' )+0\r\n Sigs = .signatures->array<1>\r\n Scnt = fieldcount( Sigs, @vm )\r\n SigCnt = 0\r\n for i = 1 to Scnt\r\n if Sigs<1,i> <> '' then\r\n SigCnt += 1\r\n end\r\n next i\r\n if SigCnt >= NumSigsRequired then\r\n .status->value = 'O'\r\n end else\r\n .status->value = 'U'\r\n end\r\nend\r\nRETURN 1"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user