Finance & RegTech
Incoming e-invoices for Unit4 ERP
Key achievements
euua9o2fq5z0suhnfth70r89t234p0-large.webp&w=3840&q=75)
"Their dedication and hands-on approach have made a real difference to the success of our projects."
Marina Spohr, Senior Project Manager, ACE Solutions
Client
ACE Solutions is a Unit4 Business Software (formerly Agresso) consulting and implementation partner and Hotovo's partner since 2017. Besides implementing Unit4 ERP for its customers, ACE offers its own product extensions that solve recurring finance processes on top of the platform. Invoice2UBW, ACE's extension that captures e-invoices for Unit4, runs in production at multiple ACE customers, both on-premise and in Unit4 Cloud.
gt9vddm09z8s66fkqbzlx9ubqzcp2e-small.webp)
q7ztz4w07l1ehsi12d8srk2l8dogvb-small.webp)
Case study
The need
Accounts payable teams at ACE's customers received supplier invoices by email and SFTP, as plain PDFs, ZUGFeRD/XRechnung hybrid files or UBL XML, and keyed them into Unit4 by hand. From 1 January 2025, the German B2B e-invoicing mandate required every business to be able to receive structured e-invoices. ACE needed a product that reads every incoming invoice format, pre-fills the data and posts it straight into Unit4 with the original documents attached. Without it, customers would face slower closing, entry errors and compliance gaps.
Core issue
- Hard deadline – the e-invoicing mandate took effect on 1 January 2025, so the first customer release had to be live before the end of 2024.
- Legacy starting point – the product grew out of the existing Invoice2Agresso extension. It had to be renamed, made installable side by side with the original and refactored without disrupting customers.
- Format and channel diversity – invoices arrived as ZUGFeRD 1.0, 2.1 and 2.1.1, XRechnung, UBL 2.1 with embedded PDFs, or PDFs with no structured data at all, through IMAP and Microsoft 365 (OAuth) mailboxes and SFTP folders.
- Deep ERP integration – everything had to live inside Unit4: the screen extension, server process, EI02 import web service, Document Archive, PO matching, account rules and tax codes. And all of it had to run both on-premise and in Unit4 Cloud.
- Customer-specific setups – each customer posts invoices differently (dimensions, accounts, payment terms, workflow), so the product had to be configurable rather than forked per customer.
Our solution
Hotovo took full ownership of Invoice2UBW, from solution design with ACE consultants through development, testing and packaging to releases deployed in customers' Unit4 environments.
The team built an inbox-to-voucher workflow inside Unit4. Invoices are collected automatically. Structured data is read directly from the e-invoice standard where there is one, and AI extraction covers plain PDFs. Accountants review the pre-filled data on a single screen, and the invoice is then posted through Unit4's standard EI02 interface and archived with the voucher.
Key technical capabilities delivered:
- Multi-channel invoice intake – IMAP and Microsoft 365 mailboxes (Graph API, OAuth 2.0), SFTP and local folders, with attachment de-duplication by content hash.
- Native e-invoice parsing – ZUGFeRD 1.0, 2.1 and 2.1.1 (incl. XRechnung) and UBL 2.1, including PDFs with embedded XML and UBL files with embedded PDFs.
- AI extraction for plain PDFs – invoices without machine-readable data are sent to an AI extraction service and returned as structured invoice data, with configurable timeout and error handling.
- Automatic pre-fill – supplier identified by IBAN, name or sender address; PO lines bring account, tax code and descriptions; payment method, period and due date are filled with defaults.
- Configurable dynamic fields – per-customer field mapping, flexi fields and AI mapping defaults. New requirements are configured, not coded.
- Review and validation screen – human-readable XML and PDF preview, PDF merging, drafts, record locking against concurrent editing, and validation before posting (mandatory fields, dates, valid order IDs).
- Automated posting and archiving – a Unit4 server process imports each invoice via the EI02 web service, finds the created voucher, and uploads the invoice and original email to Unit4 Document Archive with end-to-end status tracking.
- Cloud-ready packaging – one install package for on-premise and Unit4 Cloud, versioned database scripts and a scripted release process.
- Automated test coverage – 157 unit tests (NUnit, Moq) covering e-invoice standards, data mapping, email clients and AI responses.
AI extraction and quality controls:
- Standards first, AI second – structured data is always read directly from ZUGFeRD, XRechnung or UBL. AI is used only when an invoice has no machine-readable data.
- Human in the loop – every AI-extracted invoice is reviewed on screen before posting, and validation blocks values that do not exist in Unit4 (e.g. an AI-suggested order ID missing from the PO list).
- Grounded supplier matching – AI-extracted IBAN and supplier name are matched against Unit4 supplier master data instead of being trusted blindly.
- Regression test data – real AI service responses are kept as fixtures in the automated test suite.
- Resilience – AI timeouts and errors are logged and shown to the user. An invoice can always be completed manually, so AI outages never stop the AP process.
Key results
- Ready for the mandate – first customer release shipped on 16 December 2024, 8 weeks after kickoff and 16 days before the German e-invoicing mandate took effect.
- No more re-keying – invoice data is pre-filled from e-invoices or AI, reviewed on one screen and posted through Unit4's standard interface with documents archived to the voucher.
- In production at multiple customers – running in both on-premise and Unit4 Cloud installations from a single codebase.
- Continuous delivery – 46 versions in two years, each with documented release notes and a versioned install package, from a team of two developers working with Claude Code.
- Fully automated processing next – the next phase lets invoices that pass all validations flow into Unit4 without manual touch, leaving accountants to handle only the exceptions.
Hotovo remains ACE Solutions' development partner for Unit4 extensions, a collaboration running since 2017.
Tech stack
- UI: Unit4 TopGen screen extension, C#, PDF Clown (PDF preview and merge)
- Backend: C#, .NET Framework 4.8, Unit4 server process, EI02 ImportService and DocumentArchive web services (SOAP), SQL Server, ZUGFeRD-csharp, UblSharp
- QA & Testing: NUnit, Moq, real-world e-invoice test fixtures, UAT with ACE consultants
- AI / LLM: AI invoice-extraction REST service returning ZUGFeRD-structured data [ CONFIRM: model / provider ]
- AI Dev Tooling: Visual Studio + Claude Code
- Infrastructure: Unit4 Cloud and on-premise, Microsoft 365 Graph API (OAuth 2.0), IMAP (MailKit), SFTP (SSH.NET), Git, Jira, Confluence
Team size
Hotovo team:
- 2 Full-Stack Developers – Unit4 (Agresso) extensions in C#/.NET, TopGen UI, server processes, e-invoicing standards, AI integration
On client side:
- ACE Solutions consultants – business requirements, customer setup, user acceptance testing
The developers use Claude Code for analysis, implementation, code review and release automation.
1y8bw9zwfkekqjq4zuqkimrxonh0ju-small.webp&w=3840&q=75)
bpbmnhkyjx1n9mc6e5yeyhtcluq9u0-small.webp&w=3840&q=75)















5bu3ff6jrd3rkfexehtdzzir8p1hs7-small.webp&w=3840&q=75)
ffejbupeoflmiy7b1rg817ztopi7hl-small.webp&w=3840&q=75)

9u80rif7ydl8z0gol4yocpxdjxa79j-small.webp&w=3840&q=75)




