code change · featureInventoryofficial - Microsoftreviewed - checked by Opus

#10524 Add a purchase order matching API

New public codeunits in the Base Application let other apps, starting with E-Documents, create Matched Order Line records through a validated match group. A helper suggests receipts that could cover the remaining amount to invoice on an order.

Pull request · merged into main (BC30) on 2026-08-28 by mynjj · 4 files (+2107 -0), 3 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • New public codeunits act as a facade for inserting Matched Order Line records
  • PO Matching Group buffers matches and validates quantities, prepayment and item tracking rules as each match is added
  • Existing persisted matches are discovered breadth-first and loaded so validations consider them
  • Iterators expose the buffered matches and the invoiceable receipts
  • Additive change; existing BaseApp matching logic is not changed

AL objects touched

Context

  • Work items: AB#625392
  • Labels: Team: SCM
  • Systems: inventory

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