No description
- CHANGELOG und README für Version 5.7 aktualisiert - Dokumentiert: PDF-Pfad-Fix und Fallback für alte Pfade Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| admin | ||
| bin | ||
| build | ||
| class | ||
| core | ||
| css | ||
| docs | ||
| img | ||
| langs | ||
| lib | ||
| sql | ||
| batch.php | ||
| card.php | ||
| CHANGELOG.md | ||
| ChangeLog.md | ||
| COPYING | ||
| datanorm.php | ||
| datanorm_changelog.php | ||
| datanorm_list.php | ||
| datanorm_update.php | ||
| import.php | ||
| importzugferdindex.php | ||
| list.php | ||
| mapping.php | ||
| modulebuilder.txt | ||
| new_products.php | ||
| README.md | ||
ZUGFeRD Import for Dolibarr ERP & CRM
Import ZUGFeRD/Factur-X electronic invoices as supplier invoices in Dolibarr.
Features
Core Functionality
- PDF Import: Upload ZUGFeRD/Factur-X PDF invoices with embedded XML data
- XML Parsing: Automatic extraction and parsing of invoice data from embedded XML
- Duplicate Detection: SHA256 hash-based detection prevents importing the same invoice twice
- Supplier Detection: Automatic supplier matching via VAT ID or customer reference number
Product Matching
- Multi-Method Matching: Products are matched via:
- Article mapping (supplier article number → your product)
- EAN/GTIN barcode
- Product reference
- Manufacturer reference
- Manual Assignment: Assign products manually when automatic matching fails
- Product Creation: Create new products directly from import data
- Product Templates: Duplicate existing products with ZUGFeRD data pre-filled
- EAN Auto-Update: Automatically updates product barcodes from invoice data
Workflow
- Persistent Import Records: Imports are saved to database immediately
- Status Tracking:
Imported- Ready for invoice creationPending- Manual intervention required (missing products/supplier)Processed- Supplier invoice createdError- Import failed
- Resume Anytime: Continue editing imports later
- Sum Validation: Validates totals between ZUGFeRD data and created invoice
Batch Import
- Folder Monitoring: Import from a local folder (watch folder)
- IMAP Import: Import from email mailbox
- Automatic Archiving: Successfully imported files are moved to archive
Unit Code Translation
- Translates UN/ECE unit codes (C62, MTR, LTR, etc.) to readable labels (Stk., m, l)
Requirements
- Dolibarr 19.0 or higher
- PHP 7.1 or higher
- PHP IMAP extension (for email import functionality)
Installation
- Copy the
importzugferdfolder to your Dolibarrcustomdirectory - Enable the module in Setup > Modules > ZUGFeRD Import
- Configure settings in ZUGFeRD Import > Setup
Configuration
IMAP Settings (for email import)
- IMAP Server hostname
- Port (993 for SSL, 143 for STARTTLS)
- Username and password
- Mailbox folder to monitor
- Use Test Connection to verify settings and select folder
Folder Settings (for folder import)
- Watch Folder: Local path for incoming invoices
- Archive Folder: Local path for processed invoices
- IMAP Archive Folder: Email folder for processed emails
Import Settings
- Auto-create invoices: Automatically create supplier invoices during batch import
Usage
Manual Import
- Go to ZUGFeRD Import > Import Invoice
- Upload a ZUGFeRD/Factur-X PDF file
- Review invoice data and line items
- Assign missing products if needed
- Select supplier (if not auto-detected)
- Click Create Supplier Invoice
Batch Import
- Go to ZUGFeRD Import > Batch Import
- Select source (Folder or Email)
- Click Start Import
- Review results
Product Mapping
- Go to ZUGFeRD Import > Product Mapping
- Select supplier
- Add mappings: Supplier article number → Your product
Extrafields
The module adds a custom field to third parties:
- Customer No. at Supplier: Your customer number at this supplier (used for automatic supplier detection via buyer reference)
Translations
Available in:
- German (de_DE)
- English (en_US)
Version History
See CHANGELOG.md for detailed version history.
5.7 (Current)
- Fixed PDF path for Cron/Batch imports - now correctly saved to
/imports/{id}/{filename} - Added fallback for old PDF paths when attaching to supplier invoices
5.5
- Fixed copper surcharge scaling in mass update (different quantities between Dolibarr and Datanorm)
- Fixed VAT rate preservation when updating prices
- New filters for price direction (up/down) in mass update
- Alternative Datanorm prices inherit min quantity, packaging, VAT, and kaufmenge from existing prices
- Copper surcharge is NOT set by import - calculated by separate module
4.2
- PDF attachments properly linked to supplier invoices via ECM
- Most expensive item shown as invoice description
3.8
- Improved cable pricing for different supplier formats (Sonepar vs Kluxen/Witte)
- Automatic ring size detection from product names (Ri100, Tr500, etc.)
- EAN auto-update from ZUGFeRD invoices with automatic barcode type detection
3.7
- GlobalNotify integration for import notifications
3.5
- Automatic cron import from watch folder and IMAP
3.0
- Datanorm integration for article prices
1.0
- Initial release
License
GPLv3 or (at your option) any later version. See file COPYING for more information.
Author
Eduard Wisch - data IT solution