code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#11567 [29.x]Report 400 (Remittance Advice) Does Not Include Applied Vendor Refund Entries Resulting in Incorrect Total Calculation

Report 400 (Remittance Advice) now includes applied vendor refund entries that share the payment's vendor number and document number, ensuring the printed line items match the calculated total.

Pull request · merged into releases/29.x (BC29) on 2026-09-21 by neeleshsinghal · 5 files (+348 -17), 3 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Refund entries are now identified and displayed as lines when they share the payment’s vendor and document number
  • Payment discount logic is skipped for refund entries to prevent incorrect calculations
  • Report total is adjusted by subtracting line amounts to reconcile with displayed line items
  • Fixes discrepancy where listed lines did not match the printed total
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#650389
  • Labels: AL: Apps (W1), Team: SCM
  • Systems: development, purchasing
  • From the description: “The report only surfaced entries from the payment’s own application chain, missing refunds applied through a separate chain.”

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