fix: elixFormsAPI - check codice fiscale ammesso

This commit is contained in:
2026-03-02 09:15:49 +01:00
parent d30862cd0b
commit 7b2bbd56df
@@ -12,7 +12,7 @@ http:
- name: x-api-key - name: x-api-key
value: "{{elixFormsWsAuthenticationToken}}" value: "{{elixFormsWsAuthenticationToken}}"
- name: x-ef-request-id - name: x-ef-request-id
value: "22224" value: "24218"
body: body:
type: json type: json
data: |- data: |-
@@ -20,6 +20,7 @@ http:
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script "userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
"userContext": { "userContext": {
"lang": "IT", "lang": "IT",
"crlf": "\r\n",
"codiciFiscaliAmmessi": ";MMMPPL74T17E463A;;" "codiciFiscaliAmmessi": ";MMMPPL74T17E463A;;"
} }
} }
@@ -33,13 +34,13 @@ runtime:
// Copy-pasta your EFTL document below inside the template literals (`) // Copy-pasta your EFTL document below inside the template literals (`)
prepareEftlDocument(String.raw` prepareEftlDocument(String.raw`
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /] [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="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="codiceFiscaleUtente" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
[VAR name="codiceFiscaleUtenteDebug" 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] [IF]
[CONDITION][CONTAINS varname="responsabiliScientifici"][VALUE_OF varname="codiceFiscaleUtente" /][/CONTAINS][/CONDITION] [CONDITION][CONTAINS varname="responsabiliScientifici"][VALUE_OF varname="codiceFiscaleUtente" /][/CONTAINS][/CONDITION]
@@ -50,6 +51,10 @@ runtime:
[/ELSE IF] [/ELSE IF]
[/IF] [/IF]
[%= responsabiliScientifici %]
[%= crlf %]
[%= codiceFiscaleUtente %]
[%= crlf %]
[%= isRichiedenteInRS %] [%= isRichiedenteInRS %]
[/EFTL] [/EFTL]
`); `);