add Liquidazione request for manually inserted amounts
This commit is contained in:
+72
@@ -0,0 +1,72 @@
|
|||||||
|
info:
|
||||||
|
name: elixPro - Recupero importi inseriti
|
||||||
|
type: http
|
||||||
|
seq: 22
|
||||||
|
|
||||||
|
http:
|
||||||
|
method: POST
|
||||||
|
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||||
|
headers:
|
||||||
|
- name: x-requested-with
|
||||||
|
value: XMLHttpRequest
|
||||||
|
- name: x-api-key
|
||||||
|
value: "{{elixFormsWsAuthenticationToken}}"
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "31630"
|
||||||
|
disabled: true
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "31499"
|
||||||
|
body:
|
||||||
|
type: json
|
||||||
|
data: |-
|
||||||
|
{
|
||||||
|
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||||
|
"userContext": {
|
||||||
|
"lang": "IT",
|
||||||
|
"crlf": "\r\n"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
auth: inherit
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
scripts:
|
||||||
|
- type: before-request
|
||||||
|
code: |-
|
||||||
|
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||||
|
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||||
|
prepareEftlDocument(String.raw`
|
||||||
|
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||||
|
|
||||||
|
[VAR name="codiciFiscali" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,INSERIMENTO_MANUALE_CODFIS;INSERIMENTO_MANUALE,REQUEST,ID_OBJECT,CONCAT,##[/TAG][/SPLIT][/VAR]
|
||||||
|
[VAR name="importi" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,INSERIMENTO_MANUALE_IMPORTO;INSERIMENTO_MANUALE,REQUEST,ID_OBJECT,CONCAT,##[/TAG][/SPLIT][/VAR]
|
||||||
|
[VAR name="modalita" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,INSERIMENTO_MANUALE_MODALITA;INSERIMENTO_MANUALE,REQUEST,ID_OBJECT,CONCAT,##[/TAG][/SPLIT][/VAR]
|
||||||
|
|
||||||
|
[VAR name="countInserimenti" type="number"][SIZE_OF varname="codiciFiscali" /][/VAR]
|
||||||
|
[% current = 0; %]
|
||||||
|
|
||||||
|
CF: [%= codiciFiscali %]
|
||||||
|
IM: [%= importi %]
|
||||||
|
MO: [%= modalita %]
|
||||||
|
CN: [%= countInserimenti %]
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>C.F.</th>
|
||||||
|
<th>Importo</th>
|
||||||
|
<th>Modalità</th>
|
||||||
|
</tr>
|
||||||
|
[FOR varName="inserimento" iterable="codiciFiscali"]<tr>
|
||||||
|
<td>[VALUE_OF varname="codiciFiscali" index="current" /]</td>
|
||||||
|
<td>[VALUE_OF varname="importi" index="current" /]</td>
|
||||||
|
<td>[VALUE_OF varname="modalita" index="current" /]</td>
|
||||||
|
</tr>[% current = current + 1; %][/FOR]
|
||||||
|
</table>
|
||||||
|
|
||||||
|
[/EFTL]
|
||||||
|
`);
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
Reference in New Issue
Block a user