code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#11336 [master] Report 400 (Remittance Advice) Does Not Include Applied Vendor Refund Entries Resulting in Incorrect Total Calculation

Report 400 now includes applied vendor refund entries that share a payment's document number, ensuring the report lines match the total amount instead of showing a discrepancy.

Pull request · merged into main (BC30) on 2026-09-21 by neeleshsinghal · 5 files (+348 -17), 3 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Vendor refunds sharing the payment’s Vendor No. and Document No. are now marked and shown as lines on Report 400
  • Payment discount logic is skipped for refund entries
  • The total is adjusted by the line amount so listed lines reconcile with the printed total
  • Both the Base Application report and the PEPPOL remittance advice buffer and export codeunits were updated, with new tests
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#648309
  • Labels: AL: Apps (W1), Team: SCM
  • Systems: development, purchasing
  • From the description: “A vendor refund sharing a payment’s document number isn’t shown as a line on Report 400”

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