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

#14613 Receipt on Invoice: posting an invoice matched to only some lines of a purchase order fails

Fixed purchase invoice posting when matched to only some lines of a purchase order with Receipt on Invoice. The fix ensures that only matched order lines are received during invoice posting, while unmatched lines retain their quantity to receive for later invoicing.

Pull request · merged into main (BC30) on 2026-12-03 by VolodySyn · 17 files (+702 -26), 15 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Sets Qty. to Receive to 0 on unmatched order lines before auto-posting receipt, then restores it afterward
  • CheckMatchedOrderLine now only errors for Receipt on Invoice lines that would actually be received
  • Receipt on Invoice is blocked on inventory items at locations requiring warehouse receipts
  • Unmatched order lines without Receipt on Invoice are no longer auto-received
  • Receipt on Invoice feature telemetry is logged only when an order is actually auto-received
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #14869 into releases/29.x on 2026-12-03

Context

  • Work items: AB#660778
  • Labels: Team: SCM
  • Systems: purchasing, inventory
  • From the description: “posting a purchase invoice that is matched to only some lines of a purchase order failed”

No source states these links: they share an object, a model read them, or a person found the same subject.

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