fix: elixFormsAPI - check codice fiscale ammesso
This commit is contained in:
+8
-3
@@ -12,7 +12,7 @@ http:
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
value: "24218"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
@@ -20,6 +20,7 @@ http:
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"codiciFiscaliAmmessi": ";MMMPPL74T17E463A;;"
|
||||
}
|
||||
}
|
||||
@@ -33,13 +34,13 @@ runtime:
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="isRichiedenteInRS" type="string"][% isRichiedenteInRS = "Utente non ammesso alla compilazione perché non RS del contratto!"; %][/VAR]
|
||||
[VAR name="isRichiedenteInRS" type="string"][% isRichiedenteInRS = "Utente non ammesso alla compilazione perché non risulta fra i Responsabili Scientifici del contratto!"; %][/VAR]
|
||||
[VAR name="responsabiliScientifici" type="string"][TAG]GETVALUEBYTAG,CONTRATTO_RESPONSABILI,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
[VAR name="codiceFiscaleUtente" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="codiceFiscaleUtenteDebug" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
[% codiceFiscaleUtente = ", CF: " + codiceFiscaleUtente + " "; %]
|
||||
[% codiceFiscaleUtente = ", CF: " + codiceFiscaleUtente + ","; %]
|
||||
|
||||
[IF]
|
||||
[CONDITION][CONTAINS varname="responsabiliScientifici"][VALUE_OF varname="codiceFiscaleUtente" /][/CONTAINS][/CONDITION]
|
||||
@@ -50,6 +51,10 @@ runtime:
|
||||
[/ELSE IF]
|
||||
[/IF]
|
||||
|
||||
[%= responsabiliScientifici %]
|
||||
[%= crlf %]
|
||||
[%= codiceFiscaleUtente %]
|
||||
[%= crlf %]
|
||||
[%= isRichiedenteInRS %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user