#11339 Prevent order matching for invoice lines created by Get Receipt Lines
Matched order line functionality now rejects invoice lines created through Get Receipt Lines, preventing inconsistent matching information when working with similar purchase orders.
- 11files
- 10AL files
- 2objects
Pull request · merged into main (BC30) on 2026-09-14 by VolodySyn · 11 files (+147 -0), 10 AL · fix · tier official · reviewed (checked by Opus)
What changed
- CheckLineCanBeMatched validation blocks matching attempts on lines with a populated Receipt No. field
- Guard enforced at both per-line entry points (page drill-down, action) and header-opened paths (codeunit functions)
- Error message immediately informs users that matched order lines aren’t supported for Get Receipt Lines-created lines
- Test coverage includes both per-line and header-path rejection scenarios
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 5826 “Matched Order Line Mgmt.”, Base Application: modified
- Page 55 “Purch. Invoice Subform”, Base Application: modified
src/Layers/APAC/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/BE/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/ES/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/FR/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/IT/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/NA/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/NL/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/RU/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al: modified, not in the BC30 snapshot
Also merged into
- #11396 into
releases/29.xon 2026-09-14
Context
- Work items: AB#636138
- Labels: Team: SCM
- Systems: inventory, purchasing
- From the description: “Matched order lines are not supported for lines created with the Get Receipt Lines function.”
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).