code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#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.

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

Context

  • Work items: AB#648724
  • Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Integrations
  • Systems: development

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).