Skip to content

Commit e418bb8

Browse files
committed
Update custom-format-templating.md
1 parent 283b8d4 commit e418bb8

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

docs/learn/export-pipeline/custom-format-templating.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,56 @@ Result is a generated TXT file representing a tree with crown height of 5 rows:
313313
*********
314314
|
315315
```
316+
317+
### Custom EDIFACT
318+
319+
```json
320+
{
321+
"export_configs": [
322+
{
323+
"content_encoding": "utf-8-sig",
324+
"export_reference_key": "export_edifact",
325+
"file_content_template_multiline": [
326+
"{% set ns = namespace(counter=33) %}",
327+
"UNA:+.?*'",
328+
"UNB+UNOB:4::+123456789+123456789+{{field.unique_id}}'",
329+
"UNH+{{field.unique_id}}+INVOIC:D:10A:UN+++++SCAN'",
330+
"BGM+{{document_type}}+{{invoice_number}}+43'",
331+
"DTM+137:{{field.invoice_date}}+:102'",
332+
"DTM+243:{{scan_date}}:102'",
333+
"FTX+INV+3++40{{field.hand_written_segment}}+de'",
334+
"RFF+AFF:{{field.unique_id}}'",
335+
"RFF+AWK:Acknowledgement_{{field.unique_id}}.pdf'",
336+
"RFF+AJK:{{field.invoice_type_id}}X'",
337+
"RFF+ANJ:AuthNum_Test'",
338+
"RFF+ON:{{field.order_number}}'",
339+
"RFF+IP:{{import_number}}'",
340+
"NAD+SU+::92++{{field.sender_name}}+{{field.sender_street}}+{{field.sender_city}}++{{field.sender_zip}}+{{field.sender_country}}'",
341+
"FII+SU+bankaccount:account holder+Default Swift:25:5:Defaultbankkey:25:131+GB'",
342+
"RFF+PQ:qrcodeTest'",
343+
"RFF+AHP:{{field.sender_vat_id}}'",
344+
"CTA+AP+person:department'",
345+
"COM+066666666:TE'",
346+
"NAD+UC+::92++Dummy +Dummy +Dummy ++12345+IN'",
347+
"NAD+BY+{{field.buyer_org_id}}::234++{{field.recipient_name}}+{{field.recipient_street}}+{{field.recipient_city}}++{{field.recipient_zip}}+{{field.recipient_country}}'",
348+
"NAD+MS+A1730832::234++Example +Example +Example ++91052+DE'",
349+
"CUX+2:{{field.currency}}:4:1+6:{{field.api_currency}}:18:1+{{field.exchange_rate}}+ECR'",
350+
"DTM+134:{{field.scan_date}}:102'",
351+
"LIN+1++500123456789:BP'",
352+
"QTY+47:1.000:PCE'",
353+
"MOA+66:{{field.amount_due}}'",
354+
"MOA+203:{{field.amount_due}}'",
355+
"PRI+INV:{{field.amount_due}}:::1.000:PCE'",
356+
"UNS+S'",
357+
"MOA+39:{{field.amount_due}}'",
358+
"MOA+340:{{field.amount_total_base}}'",
359+
"{% for item in field.tax_details %}TAX+7+VAT:::C1+AR++:::{{item.tax_detail_rate}}'\nMOA+125:{{item.tax_detail_total}}'\nMOA+124:{{field.amount_total_base}}'{% set ns.counter = ns.counter + 1 %}{% if not loop.last %}\n{% endif %}{% endfor %}",
360+
"ALC+C+:+++SC:::'",
361+
"MOA+8:0.00'",
362+
"UNT+{{ns.counter}}+0'",
363+
"UNZ+1+00000000000001'"
364+
]
365+
}
366+
]
367+
}
368+
```

0 commit comments

Comments
 (0)