#12051 [Peppol] Fix Remittance Advice XML line count, Note order and invoice reference
The Peppol remittance advice XML export now correctly reports the actual line count, orders note elements according to XSD requirements, and uses the vendor invoice number for invoice references.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-10-01 by GediminasGaubys (community contribution) · 2 files (+85 -9), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- LineCountNumeric element now reflects the actual number of lines instead of always showing zero
- Line-level Note elements are positioned immediately after ID elements to match XSD schema requirements
- Invoice references now prioritize the vendor’s external document number, falling back to the system document number
- InvoicingPartyReference element is no longer emitted from the export
- New test validates all three corrections
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 37208 “Export Remit. Advice PEPPOL30”, PEPPOL: modified
Context
- Work items: AB#648724
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Integrations
- Systems: development
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Send Remittance Advice Extension | Microsoft Docs — possibly related: Send Remittance Advice extension enables emailing remittance advice to vendors with document details. (model-linked)
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).