diff --git a/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Calcolo ripartizione per tipologia persona.yml b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Calcolo ripartizione per tipologia persona.yml index bdde3c7..6679095 100644 --- a/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Calcolo ripartizione per tipologia persona.yml +++ b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Calcolo ripartizione per tipologia persona.yml @@ -19,6 +19,9 @@ http: disabled: true - name: x-ef-request-id value: "22744" + disabled: true + - name: x-ef-request-id + value: "23258" body: type: json data: |- @@ -37,7 +40,7 @@ runtime: - type: before-request code: |- // Copy-pasta your EFTL document below inside the template literals (`) - var eftlDocumentToBeProcessed = String.raw` + var eftlDocumentToBeProcessed = bru.setVar("elixBase64EftlDocument", btoa(String.raw` [EFTL][HEADER name="trimDocument" value="true" type="boolean" /] [VAR name="arrayCFdocenti" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTI_QUALIFICA_DOCENTE,REQUEST,IUQOID[/TAG][/VAR] [VAR name="arrayCFaltro" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTI_QUALIFICA_ALTRO,REQUEST,IUQOID[/TAG][/VAR] @@ -58,7 +61,7 @@ runtime: [DO] [VAR name="personaImporto" type="number"][VALUE_OF varname="ripartizioniImportiIterable" index="ripartizioneIdx" /][/VAR] [VAR name="personaNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="ripartizioniNominativiIterable" index="ripartizioneIdx" /][/SPLIT][/VAR] - [VAR name="personaNominativoRightIterable" type="iterable"][SPLIT regex="\)"][VALUE_OF varname="personaNominativoIterable" index="secondItem" /][/SPLIT][/VAR] + [VAR name="personaNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="personaNominativoIterable" index="secondItem" /][/SPLIT][/VAR] [VAR name="personaCF" type="string"][VALUE_OF varname="personaNominativoRightIterable" index="firstItem" /][/VAR] [IF] [CONDITION][CONTAINS varname="arrayCFdocenti" value="personaCF" /][/CONDITION] @@ -71,14 +74,15 @@ runtime: [/WHILE] [/THEN][/IF] - [%= totalePersonaleDocente %] - [%= totalePersonaleAltro %] + NOM: [VALUE_OF varname="ripartizioniNominativiIterable" /] + [%= crlf %] + IMP: [VALUE_OF varname="ripartizioniImportiIterable" /] + [%= crlf %] + DOC: [FORMAT type="number" pattern="0.00"][% totalePersonaleDocente %][/FORMAT] + [%= crlf %] + PTA: [FORMAT type="number" pattern="0.00"][% totalePersonaleAltro %][/FORMAT] [/EFTL] - `; - - var base64EncodedDocument = btoa(eftlDocumentToBeProcessed); - - bru.setVar("elixBase64EftlDocument", base64EncodedDocument); + `)); settings: encodeUrl: true