From 7b2bbd56df84f50ad1804ae0672b897c99baf87e Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Mon, 2 Mar 2026 09:15:49 +0100 Subject: [PATCH] fix: elixFormsAPI - check codice fiscale ammesso --- .../Codice fiscale ammesso.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Codice fiscale ammesso.yml b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Codice fiscale ammesso.yml index 6f5de71..d9cfa44 100644 --- a/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Codice fiscale ammesso.yml +++ b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Codice fiscale ammesso.yml @@ -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] `);