---
id: change/bcapps/11339
type: change
title: "#11339 Prevent order matching for invoice lines created by Get Receipt Lines"
summary: Matched order line functionality now rejects invoice lines created through Get Receipt Lines, preventing inconsistent matching information when working with similar purchase orders.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit matched order line mgmt.
  - page purch. invoice subform
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:13.165Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e5a72692b4ec96a8005787fd9c969d1fd01c12aa
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11339
    title: "microsoft/BCApps#11339: Prevent order matching for invoice lines created by Get Receipt Lines"
    date: "2026-09-14"
    commit: e5a72692b4ec96a8005787fd9c969d1fd01c12aa
    t: null
    quote: Matched order lines are not supported for lines created with the Get Receipt Lines function.
links:
  learn: []
  objects:
    - object/codeunit/5826
    - object/page/55
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11339
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11339
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-14T15:48:57Z"
author: VolodySyn
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 11
  additions: 147
  deletions: 0
  al: 10
apps:
  - Base Application
objects_touched:
  - key: codeunit/5826
    page: codeunit/5826
    type: codeunit
    id: 5826
    name: Matched Order Line Mgmt.
    app: Base Application
    status: modified
  - key: page/55
    page: page/55
    type: page
    id: 55
    name: Purch. Invoice Subform
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/APAC/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/BE/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/ES/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/FR/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/IT/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NA/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NL/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/RU/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports:
  - number: 11396
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/11396
fixes_issues: []
work_items:
  - 636138
systems:
  - inventory
  - purchasing
quote: Matched order lines are not supported for lines created with the Get Receipt Lines function.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

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

[Pull request](https://github.com/microsoft/BCApps/pull/11339) · 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."](../../objects/codeunit/5826.md), Base Application: modified
- [Page 55 "Purch. Invoice Subform"](../../objects/page/55.md), Base Application: modified
- `src/Layers/APAC/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/BE/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/ES/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/FR/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/IT/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/NA/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/NL/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/RU/BaseApp/Purchases/Document/PurchInvoiceSubform.Page.al`: modified, not in the BC30 snapshot

## Also merged into

- [#11396](https://github.com/microsoft/BCApps/pull/11396) into `releases/29.x` on 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).
