Overview
Leon can generate charter invoices as XRechnung e-invoices, the German e-invoicing standard compliant with EN 16931. When both the seller and the buyer are based in Germany, Leon creates XRechnung (XML) files when the invoice is issued, in two syntaxes: CII and UBL. The files are attached to the invoice email next to the PDF and can also be downloaded from the quote.
When XRechnung files are created
-
The country of the seller and the country of the buyer are both Germany (DE).
-
The document is an invoice, a recharge invoice or a credit note. Proforma invoices never include XRechnung files.
-
The files are created once, when the invoice is issued. Sending the invoice by email attaches the same files; they are not generated again.
-
Invoices issued before this feature was introduced open and generate PDFs as before, without XRechnung files.
Enabling e-invoicing
Go to Admin Panel > Sales Module, open the Invoices section and tick Enable e-invoicing under E-invoicing. With the option on, Leon applies the additional validations required by EN 16931: missing seller data is highlighted, and every invoice item must have a VAT category.
Seller data
The seller details used on e-invoices are configured in Default invoice seller data. Two new fields have been added to each seller data set:
-
Contact phone - required for XRechnung. Enter the number in international format with a space after the country code, for example +49 301234567.
-
Company registration ID - used on e-invoices with VAT category O (not subject to VAT). Up to 50 characters.
IBAN and Country must also be filled in.
E-invoice address of the buyer
The invoice has a new E-invoice address field in the buyer section, below EU VAT#. It is the buyer's address for e-invoices and is pre-filled with the client's email. Because it is an email address, the invoice email is also sent to it.
VAT category and exemption reason on invoice items
Each invoice item has a VAT category. The list shows the codes only; hover over the information icon next to the column header to see their descriptions. For some categories you also need to fill in the Exemption reason.
|
VAT category |
Description |
VAT rate |
Exemption reason |
|---|---|---|---|
|
S |
Standard rate |
Above 0% (set automatically when the rate is above 0) |
Not available |
|
Z |
Zero rated |
0% |
Not available |
|
E |
Exempt |
0% |
Required |
|
AE |
Reverse charge |
0% |
Required |
|
K |
Intra-community |
0% |
Required |
|
G |
Export outside EU |
0% |
Required |
|
O |
Not subject to VAT (replaces the former "VAT not applicable" option) |
No rate |
Required |
-
An item cannot be saved if its VAT rate does not match its category.
-
Items with the same category and rate must have the same exemption reason.
-
Category O cannot be combined with other categories on one invoice.
Issuing, downloading and sending
-
If data required by XRechnung is missing, the invoice cannot be issued and Leon shows which field is missing.
-
To download the files, open the quote and go to the printable documents. Next to Print, an issued invoice shows the XRechnung (CII) and XRechnung (UBL) buttons. Each opens the XML file in a new browser tab.
-
When you send the invoice by email, the PDF and both XML files are attached. The XML file names are based on the invoice document name and end with
.xrechnung-cii.xmlor.xrechnung-ubl.xml. -
Leon records when the XRechnung files were sent and to whom.
Troubleshooting
-
No XRechnung buttons or attachments on an invoice. Check that the country of both the seller and the buyer is Germany, that the document is not a proforma, and that the invoice was issued after the feature was introduced.