#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.
- 17files
- 15AL files
- 2objects
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
- Table 39 “Purchase Line”, Base Application: modified
- Codeunit 5826 “Matched Order Line Mgmt.”, Base Application: modified
Also merged into
- #14869 into
releases/29.xon 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”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Combine Receipts or PO Lines on a Single Invoice — possibly related: Documents Receipt on Invoice feature for consolidating purchase receipts into invoices (model-linked)
- Match Purchase Invoice Drafts to Purchase Orders — possibly related: Documents matching purchase invoice drafts to purchase orders and receipts (model-linked)
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).