#9784 [E-Document Formats] Fix defects in V2 draft migration for XRechnung, PINT A-NZ and Factura-E
Fixes defects in the V2 draft import for XRechnung, PINT A-NZ and Factura-E. Re-reading an XRechnung draft no longer duplicates lines, and unsupported root elements or namespaces are rejected. PINT A-NZ vendor-matching fallbacks now receive values. Credit notes and corrective invoices now map the original invoice reference so they can be applied.
- 5files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-29 by Groenbech96 · 5 files (+90 -4), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- XRechnung: ReadIntoDraft now calls ResetDraft, so re-runs no longer duplicate lines, and ResetDraft no longer errors when no draft header exists
- XRechnung: unsupported root elements or unexpected namespaces are now rejected with an error
- PINT A-NZ: vendor ID, name and address are now returned to the vendor-matching fallbacks, and credit notes map the billing reference to Applies-to Ext. Invoice No.
- Factura-E: the corrective invoice number now maps to Applies-to Ext. Invoice No. instead of Purchase Order No.
- Three XRechnung regression tests added, mirroring the OIOUBL suite
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 11039 “E-Document XRechnung Handler”, EDocumentDE (DE layer): modified
Context
- Work items: AB#644279
- Labels: Team: Integrations
- Systems: integration
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).