---
id: change/bcapps/10466
type: change
title: "#10466 Resolve purchase lines to items on exact description match"
summary: Inbound purchase invoice lines now resolve to items when the description exactly matches one existing item, instead of falling through to G/L account matching.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit e-doc. activity log session
  - codeunit edoc prepare purch. draft
  - codeunit e-doc. providers
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:44.267Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 79ee343b5bd8782f0e71b628b3d4633255e29958
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10466
    title: "microsoft/BCApps#10466: Resolve purchase lines to items on exact description match"
    date: "2026-08-24"
    commit: 79ee343b5bd8782f0e71b628b3d4633255e29958
    t: null
    quote: Resolves the line to the item when there is exactly one eligible item with that description.
links:
  learn: []
  objects:
    - object/codeunit/6175
    - object/codeunit/6406
    - object/codeunit/6124
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10466
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10466
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-24T13:12:31Z"
author: Explorer986
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 184
  deletions: 2
  al: 3
apps:
  - EDocument
objects_touched:
  - key: codeunit/6175
    page: codeunit/6175
    type: codeunit
    id: 6175
    name: E-Doc. Activity Log Session
    app: EDocument
    status: modified
  - key: codeunit/6406
    page: codeunit/6406
    type: codeunit
    id: 6406
    name: EDoc Prepare Purch. Draft
    app: EDocument
    status: modified
  - key: codeunit/6124
    page: codeunit/6124
    type: codeunit
    id: 6124
    name: E-Doc. Providers
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647171
systems:
  - integration
quote: Resolves the line to the item when there is exactly one eligible item with that description.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10466 Resolve purchase lines to items on exact description match

> Inbound purchase invoice lines now resolve to items when the description exactly matches one existing item, instead of falling through to G/L account matching.

[Pull request](https://github.com/microsoft/BCApps/pull/10466) · merged into `main` (BC30) on 2026-08-24 by Explorer986 · 4 files (+184 -2), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Adds deterministic item matching by description for e-document import
- Only triggers when exactly one non-blocked item with matching description and compatible unit of measure exists
- Runs after item reference and text-to-account mapping steps to preserve explicit setup
- Ambiguous cases retain previous G/L account matching behavior
- No schema or upgrade impact
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6175 "E-Doc. Activity Log Session"](../../objects/codeunit/6175.md), EDocument: modified
- [Codeunit 6406 "EDoc Prepare Purch. Draft"](../../objects/codeunit/6406.md), EDocument: modified
- [Codeunit 6124 "E-Doc. Providers"](../../objects/codeunit/6124.md), EDocument: modified

## Context

- Work items: AB#647171
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "Resolves the line to the item when there is exactly one eligible item with that description."

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