Import e-invoices into Dolibarr - reliably and completely
E-invoices come in different formats: as XRechnung, as ZUGFeRD or Factur-X invoice, as XML or as PDF with embedded data. This module reads them all, checks them with the official validator and guides you step by step to a correct supplier invoice in Dolibarr - compliant, traceable and without handing data to external services.
Why this module?
- All e-invoice formats: XRechnung (UBL and CII) and ZUGFeRD/Factur-X as XML or hybrid PDF are detected and read automatically. Invoices without an e-invoice (plain PDF, scan) arrive in the same inbox and are attached to the supplier invoice; you enter the header data and lines by hand next to the PDF preview - the module does not include text recognition (OCR).
- Upload or straight from the mailbox: upload files by drag & drop, or take invoices directly from the mailbox through Dolibarr's e-mail collector - further attachments of the e-mail such as delivery notes come along.
- Guided processing instead of a blind import: one processing page leads you through supplier, payment data and lines. Suppliers are recognised by their VAT ID or created from the invoice data, products are suggested from the supplier's article numbers. Lines can be selected, combined into your own lines or added to an existing draft; a live comparison shows at any time whether the totals match the invoice.
- Rounding differences resolved automatically: in practice there are several permitted ways to calculate VAT, and they lead to differences of a few cents. The module includes an automatic that picks the matching method and so avoids these differences. If larger differences are found (e.g. a calculation error by the supplier), the module reports them and does not process the invoice.
- Every invoice type booked correctly: invoices, credit notes, down payment and final invoices with the paid down payments deducted, allowances and charges, foreign currencies with the stored exchange rate, invoicing period and reverse charge (Dolibarr's reverse-charge option is switched right on the module's setup page). For a corrected invoice, the original invoice is booked out with a cancellation invoice at the click of a button - not silently replaced. A self-billed invoice that a customer issues for your supply (Gutschrift under § 14 Abs. 2 Satz 5 UStG) is taken over as a customer invoice, its cancellation as a Dolibarr credit note of it. The module checks the self-billing agreement recorded with the customer; with our module DATEV-Export, the number of the Gutschrift goes into Belegfeld 1 (document field 1).
- Readable view of the e-invoice: the built-in e-invoice viewer shows every XRechnung and ZUGFeRD invoice as a clear invoice form with lines, attachments and validation notes - printable too. No external viewer needed.
- Official validation and proven tools, local: the KoSIT validator of the German Coordinating Office for IT Standards checks every e-invoice against XRechnung and EN 16931; the validation report is kept with the supplier invoice, invalid invoices can be blocked. Mustang (Mustangproject), the established open-source library for ZUGFeRD/Factur-X, reads hybrid PDFs, converts CII and renders the invoice view. Both run on your own server and are installed with one click.
- Warning on changed bank details, and clear notes: every IBAN of the e-invoice is compared with the bank accounts stored for the supplier. If none matches, the module warns "Caution, possible fraud" - on the incoming record, when processing and in the note of the supplier invoice; after checking back with the supplier, the new bank account is stored with one click. Plus understandable rejection reasons instead of error codes, a warning for duplicate invoices, and a ready-made text to pass on to the supplier.
- With a comprehensive handbook: the Handbuch E-Rechnung Import (PDF, German, 33 pages) explains everything in detail - daily use, every error case with its solution and the setup, with a cheat sheet for accounting.
Implementation of the BMF letters on e-invoicing
The module implements the requirements of the letters of the German Federal Ministry of Finance (BMF) of 15 Oct 2024 (BStBl I p. 1320), 15 Oct 2025 and 15 Oct 2026 on mandatory e-invoicing for the invoice recipient, in particular:
- Acceptance and rejection: format errors and errors on a mandatory invoice item reject the invoice; other rule violations, such as a missing phone number of the seller, are warnings and the invoice can be processed (BMF letter of 15 Oct 2026, Rn. 22/23). ZUGFeRD EXTENDED and Peppol invoices are checked against the EN 16931 rules.
- Checklist of the mandatory items (§§ 14, 14a UStG) on every incoming record, following the mapping table of KoSIT and FeRD (recommendations on mandatory items, part I) that the BMF recommends. The result appears in the confirmation before processing and on the supplier invoice in the field "Mandatory items" (filterable).
- Checks for the input VAT deduction: for the deduction the invoice must state the mandatory items correctly and completely. On every incoming record the module says what the findings mean for the deduction (possible, check, at risk) and names the kind of check to make: for example the line where quantity × price does not give the amount, or where a missing time of supply might be stated instead.
- Time of supply from the delivery date or the period of supply; a tax point date alone or a partial invoice without date is reported for checking.
- Not checked is not valid: an e-invoice the validator could not check (not installed, aborted, time limit) is marked "not checked", also when received by e-mail; blocking invalid invoices covers it as well. The validation report names the validator's version and configuration.
- Complete takeover: all notes of the e-invoice, date and period of supply, invoice type, payment terms with cash discounts and the reasons of VAT exemptions go into the supplier invoice, also when added to an existing draft.
- Final invoices: paid deposit and partial invoices named in the e-invoice are deducted with their VAT, also in an existing draft (deposits deducted there already are not deducted twice); a difference to the amount already paid is noted on the supplier invoice. A partial invoice whose date of supply is the invoice date gets a notice: if it is in fact a deposit, the input VAT is deductible only once paid.
- Corrections: for a credit note or corrected invoice of the supplier, the module finds the corrected invoice by any of its references; when it is not in Dolibarr, a notice names its number. The cancellation of a self-billed invoice (Gutschrift under § 14 Abs. 2 Satz 5 UStG, type 261) is booked as a Dolibarr credit note; when a customer corrects its self-billed invoice for your supply, as a credit note of the customer invoice. When a customer corrects your invoice by a Gutschrift, a reduction is booked as a credit note of that invoice; a Gutschrift with a positive amount gets a notice whether it refers to your invoice, an earlier Gutschrift of the customer or a down payment invoice, and what to check.
- E-invoice sent after a PDF invoice: when a supplier sends the e-invoice for an invoice already booked from a PDF or by hand, with the same number, it is attached to that invoice instead of being refused as duplicate, if type, currency and amounts match: the booking stays unchanged, the file and a note go to the invoice (BMF letter of 15 Oct 2024, Rn. 57). Otherwise the duplicate notice names the reason.
- Self-billing agreement: a Gutschrift only counts as an invoice when self-billing was agreed beforehand (§ 14 Abs. 2 Satz 2 UStG, section 14 of the German VAT Act). Date and scope of the agreement are recorded on the third party, per direction (the same fields as in the module E-Rechnung Export). If it is missing, dated after the document or does not cover the case, the module points this out on the incoming record and on takeover - with a reminder of the right to object (§ 14 Abs. 2 Satz 3 UStG).
- PDF invoices from 2027: a PDF instead of an e-invoice from a German business for more than 250 € gets a notice and the field "E-invoice duty" (filterable): in 2027 the transition rule for small suppliers applies, from 2028 the input VAT deduction is only secured with an e-invoice.
- Evidence: original file, validation report (XML and readable) and attachments are kept with the supplier invoice; a lifted rejection stays documented with person, time and original reasons.
The module judges the invoice items; the other conditions of the input VAT deduction under § 15 UStG (e.g. the supply was received for your business) are not checked. Special tax schemes of the supplier are taken over as the invoice states them, e.g. a used spare part under the margin scheme (§ 25a UStG) on a car workshop invoice - without input VAT.
How it works
- Inbox: upload the invoice or collect it with the e-mail collector. The format is detected, the e-invoice is read and checked at once.
- Overview: the incoming list shows seller, amount, format, validation result and status; the card of each invoice shows all data read, the e-invoice viewer and the embedded attachments.
- Processing: choose the supplier, check the lines, take them over - as a new supplier invoice or into an existing draft.
- Filing: the supplier invoice is created as a draft with the original file, validation report and attachments; a tab leads back to the e-invoice at any time.
Input VAT and data protection
Input VAT security: deducting input VAT (in Germany under section 15 of the VAT Act, UStG) requires a formally correct invoice - a faulty e-invoice can cost you the deduction at the next tax audit. The module detects faulty invoices before they are booked; the complete validation report stays with the supplier invoice as evidence.
GDPR compliant: all processing takes place locally on the Dolibarr server. Neither the XML validation with the KoSIT validator nor the PDF/CII processing with the Mustang CLI sends data to external parties. A data processing agreement under the GDPR, as required for external services, is therefore not needed.
Safe with data from outside: the content of incoming invoices is displayed safely everywhere, executable attachments are stored harmlessly, oversized or manipulated files are refused; Dolibarr's permissions and entities are respected.
User interface languages: German, English
Supported input formats: XRechnung 3.0.2 (UBL and CII), ZUGFeRD 2.x / Factur-X (CII), hybrid PDF (PDF/A-3 with embedded e-invoice), plain PDF invoices for entry by hand (without text recognition)
Requirements
Tested with Dolibarr 20 to 24 and PHP 7.4 to 8.5.
Please note: because of their size, the two third-party components are not included in the module (together almost 100 MB; uploading the module in Dolibarr would fail at the size limit):
- KoSIT validator - official validator of the German Coordinating Office for IT Standards (KoSIT) for XRechnung/EN 16931, Apache License 2.0
- Mustang CLI (Mustangproject) - XML extraction from hybrid PDFs, CII-to-UBL conversion and e-invoice viewer, Apache License 2.0
After installing our module, both components can be downloaded and installed with one click on the module's setup page - the downloads come directly from the official GitHub repositories. Only files with the published checksum are installed; the setup page shows for each tool whether it matches the official release.
Using the two tools requires Java on the Dolibarr server, e.g. OpenJDK 11+ or 17 LTS. Note: with our hosting offer at DoliCenter, Java is available by default for all installations hosted with us.
The module also works without Java in a reduced mode - XRechnung invoices in UBL format are processed by the built-in PHP parser, plain PDF invoices are accepted and entered by hand. Reading CII (ZUGFeRD/Factur-X as XML or hybrid PDF) and the e-invoice viewer require the Mustang CLI, validation for input VAT purposes requires the KoSIT validator.
An internet connection is needed once to install the external tools. All invoice processing then takes place locally on the Dolibarr server, without data being sent to external parties.
Shared tools path with the E-Rechnung Export module: if you also use our module E-Rechnung Export, both modules share the same KoSIT and Mustang installation - no duplication, no two separate downloads.
Included
With the purchase of the module you receive:
- A ZIP file for download and self-installation
- The handbook "Handbuch E-Rechnung Import" (PDF, German)
- Updates for one year after purchase (downloadable from the Dolistore)
After an update: disable and re-enable the module once under Home › Setup › Modules. This creates new fields and database columns (from version 1.12: which invoice a corrected invoice replaces). Settings and data are kept.
Please note, NOT included are:
- Installation and setup in your system
- Training and answering general user questions
- Individual adaptations and extensions
If you are interested, we will be happy to make you an offer.
Documentation & demo
A detailed description of the module and its setup is available here: https://www.dolicenter.com/einvoice-import
The module is installed in our Dolibarr demo instance https://demo.portal.dolicenter.com, so you can test it thoroughly before buying.
|

|
|

|
|

|
| |
|
End ERP chaos. Automate manual processes. Turn your installation into a productivity machine.
|
|
Preferred Partner with experience. We actively shape Dolibarr and deliver solutions that work.
|
|