code change · fixPurchasing & Payablesofficial - Microsoftreviewed - checked by Opus

#11134 [Main][All-E][Repair Item] Posted Purchase Invoice Order No. is blank when invoice rounding creates a generated line

Posted purchase invoice now correctly shows the Order No. from the source purchase order even when invoice rounding creates a system-generated line.

Pull request · merged into main (BC30) on 2026-09-08 by sanjmaurya · 15 files (+815 -50), 10 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • System-generated invoice rounding lines are now excluded when checking if all lines belong to the same purchase order
  • Ensures Order No. is properly copied to posted purchase invoice headers
  • Other lines with blank or different Order No. values still prevent header population
  • Regression tests added for single-order, multiple-order, and manual-line scenarios
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#647878
  • Labels: Team: SCM
  • Systems: purchasing
  • From the description: “Ignore valid system-generated invoice rounding lines when determining whether all posted purchase invoice lines belong to the same purchase order.”

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