One invoice record with its linked line items goes in. A legally-valid XRechnung 3.0.2 file comes out, checked against the official validator.
This whole page is static. The generator below is a single file,
xrechnung.mjs, running client-side. There is no service of mine
in the loop. Every figure on this page is made up.
| Item | Qty | Unit | Net price | VAT |
|---|
Produced by the same xrechnung.mjs that runs unchanged in a Softr
workflow step, a Cloudflare Worker, or Node. The one place you adapt it is the field-mapping
function at the top of the file.
Reproduce it yourself: the exact validator version, config, and command are in the runbook below.
Zero dependencies. Use it however you like, keep it running wherever you like. Nothing here phones home.
softrRecordToXRechnung(record) and gets the XML back.XRechnung vs ZUGFeRD: this produces XRechnung (pure XML), a complete E-Rechnung on its own. The ZUGFeRD hybrid (a PDF/A-3 with the XML embedded) is a bounded add-on to the same generator, not a rebuild. The runbook covers it.