Solutions Use cases Industries Compliance Blog Discuss a pilot →
Compliance & ERP · 2026-11-10 · 7 min read

KSeF & German E-Rechnung (XRechnung / ZUGFeRD): Why XML Alone Does Not Automate Bookkeeping

Mandatory e-invoicing in Poland (KSeF) and Germany (XRechnung/ZUGFeRD) standardizes XML transport, but companies still need private AI for GL coding, 3-way matching and foreign PDFs.

Across Poland and the DACH region, finance leaders frequently ask the same reasonable question: “With mandatory KSeF in Poland and B2B E-Rechnung (XRechnung / ZUGFeRD) in Germany, won't invoice automation just happen automatically inside our ERP?”

Unfortunately, no. Structured e-invoicing solves optical reading for domestic B2B invoices — which is helpful — yet optical reading was only one slice of the accounts-payable bottleneck.

Four Operational Gaps XML E-Invoices Do Not Solve

  • GL Accounts & Cost-Center Coding (MPK / Kostenstellen): A supplier's KSeF XML or XRechnung file tells you what they sold you; it does not know which internal project, factory line, vehicle or general-ledger account in your company should absorb each line item.
  • 3-Way Matching Against Physical Deliveries: Invoices still arrive with price discrepancies, unapproved freight surcharges or quantities that do not match the stamped warehouse delivery note (WZ / Lieferschein). Matching XML lines against ERP purchase orders and scanned warehouse slips requires SKU normalization and tolerance logic.
  • Cross-Border & Foreign PDF Invoices: Polish manufacturers buying from Germany, Italy or Asia — and German firms trading across borders — still receive thousands of non-domestic PDF invoices, customs documents, freight bills and receipts outside national XML mandates.
  • Cross-Channel Duplicates: During transition periods, suppliers routinely submit a structured e-invoice via KSeF or Peppol and email a human-readable PDF copy to your AP inbox. Without cross-channel deduplication, accounting teams risk double-booking or wasted verification cycles.

Unifying XML Determinism with Local PDF AI

The cleanest architecture never feeds structured XML into an LLM. Instead, it builds a single canonical invoice schema on-premise:

  • KSeF FA XML, XRechnung (UBL/CII) and ZUGFeRD XML are parsed 100% deterministically via strict schema validators, plus rendered into a clean human-readable PDF preview for reviewers.
  • Foreign PDFs, scans and warehouse WZ delivery notes run through local layout OCR and open-weights extraction into the exact same canonical schema.
  • Both streams then pass identical accounting controls: VAT arithmetic, VIES / Polish VAT whitelist verification, cross-channel duplicate checks, historical GL/cost-center suggestions, 3-way PO matching and GoBD/KSeF archiving.

For groups operating across both Poland and Germany, a unified private pipeline bridges Comarch/Symfonia/enova365 and DATEV/SAP cleanly — turning a regulatory compliance mandate into genuine back-office speed.

← Back to all articles
Start with one real process

Send your pilot brief.

Describe the workflow, document volume or camera setup, and the outcome you want to measure. We reply within one business day with a clear feasibility view.

No third-party trackersZero-cloud data optionsPoland · DACH · EU
Or email directly to info@bakr-innovations.com →