What changed
The e-invoice XML (X-Rechnung and Factur-X) that is embedded in the PDF of a document now refers to the correct document. Until now, every document, including a normal invoice, contained the field Preceding invoice reference (ram:InvoiceReferencedDocument) with its own document number and its own date. This was wrong: the reference belongs only on documents that credit or cancel an earlier document. In addition, the document type code (ram:TypeCode) of a cancellation of an invoice now shows the correct direction.
How it works
- Invoice: no reference to a preceding document, document type code 380 (commercial invoice).
- Credit note: refers to the invoice of the original order, document type code 381 (credit note).
- Cancellation of an invoice (reversal document): refers to the cancelled invoice, document type code 381 (credit note).
- Cancellation of a credit note: refers to the cancelled credit note, document type code 380.
- The reference contains the number and the issue date of the earlier document.
- The change applies to all e-invoice formats: X-Rechnung and Factur-X (Basic, Comfort and Extended).
What you need to do
- If you import the XML into another system, for example accounting or ERP software: the cancellation of an invoice now arrives as a credit note (document type code 381) with positive amounts. If you previously reversed the sign of these documents with a rule or manually, adjust or remove that rule. Otherwise the amount is reversed twice.
- If you do not import the XML into another system, you do not need to do anything. The XML of all documents that you create after the update is correct.
- Documents that were created before the update keep their XML.
Good to know
- All documents still show positive amounts only. The document type code shows whether a document is a credit (381) or a claim for payment (380).
- The reference to the earlier document helps another system to link a credit note or a cancellation to the original invoice.
If the earlier document is not known for a document, for example because no invoice existed when the credit note was created, the reference is left out instead of showing a wrong document.
Version | Available from |
| beta | 20 November 2026 |
| stable | 2 December 2026 |
Comments
0 comments
Article is closed for comments.