---
id: change/bcapps/11815
type: change
title: "#11815 Improvements to E-Documents PO matching (E2E findings)"
summary: E-Documents PO matching now correctly handles draft page warnings based on receipt status, prevents match state cleanup issues when resetting drafts, and shows finalized matches in the draft view for better visibility.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page e-doc. purchase draft subform
  - table e-document purchase header
  - table e-doc. finalized po match
  - codeunit e-doc. po matching
  - codeunit e-doc. purchase draft utility
  - codeunit po matching
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:03:58.390Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: dfdd1acecc4c3aef7595e5de7596bc858beb3549
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11815
    title: "microsoft/BCApps#11815: Improvements to E-Documents PO matching (E2E findings)"
    date: "2026-09-24"
    commit: dfdd1acecc4c3aef7595e5de7596bc858beb3549
    t: null
    quote: The warning for "Exceeded Quantity Received" shouldn't show when matching against a line that has set "Receipt on Invoice"
links:
  learn: []
  objects:
    - object/page/6183
    - object/table/6100
    - object/table/6117
    - object/codeunit/6196
    - object/codeunit/6234
    - object/codeunit/5831
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11815
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11815
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-24T12:54:00Z"
author: mynjj
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Manual"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 7
  additions: 557
  deletions: 94
  al: 6
apps:
  - Base Application
  - EDocument
objects_touched:
  - key: page/6183
    page: page/6183
    type: page
    id: 6183
    name: E-Doc. Purchase Draft Subform
    app: EDocument
    status: modified
  - key: table/6100
    page: table/6100
    type: table
    id: 6100
    name: E-Document Purchase Header
    app: EDocument
    status: modified
  - key: table/6117
    page: table/6117
    type: table
    id: 6117
    name: E-Doc. Finalized PO Match
    app: EDocument
    status: added
  - key: codeunit/6196
    page: codeunit/6196
    type: codeunit
    id: 6196
    name: E-Doc. PO Matching
    app: EDocument
    status: modified
  - key: codeunit/6234
    page: codeunit/6234
    type: codeunit
    id: 6234
    name: E-Doc. Purchase Draft Utility
    app: EDocument
    status: modified
  - key: codeunit/5831
    page: codeunit/5831
    type: codeunit
    id: 5831
    name: PO Matching
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 11816
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/11816
fixes_issues: []
work_items:
  - 635078
  - 648156
  - 649804
  - 649808
systems:
  - integration
  - inventory
quote: The warning for "Exceeded Quantity Received" shouldn't show when matching against a line that has set "Receipt on Invoice"
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11815 Improvements to E-Documents PO matching (E2E findings)

> E-Documents PO matching now correctly handles draft page warnings based on receipt status, prevents match state cleanup issues when resetting drafts, and shows finalized matches in the draft view for better visibility.

[Pull request](https://github.com/microsoft/BCApps/pull/11815) · merged into `main` (BC30) on 2026-09-24 by mynjj · 7 files (+557 -94), 6 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Draft page warnings update dynamically when draft changes through OnAfterGetCurrRecord
- Exceeded Quantity Received warning no longer appears for lines with Receipt on Invoice enabled
- DeleteAll trigger properly executes when resetting drafts to clean up PO matching state
- New finalized PO match table stores completed matches for informational display in draft without affecting matching logic
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 6183 "E-Doc. Purchase Draft Subform"](../../objects/page/6183.md), EDocument: modified
- [Table 6100 "E-Document Purchase Header"](../../objects/table/6100.md), EDocument: modified
- [Table 6117 "E-Doc. Finalized PO Match"](../../objects/table/6117.md), EDocument: added
- [Codeunit 6196 "E-Doc. PO Matching"](../../objects/codeunit/6196.md), EDocument: modified
- [Codeunit 6234 "E-Doc. Purchase Draft Utility"](../../objects/codeunit/6234.md), EDocument: modified
- [Codeunit 5831 "PO Matching"](../../objects/codeunit/5831.md), Base Application: modified

## Also merged into

- [#11816](https://github.com/microsoft/BCApps/pull/11816) into `releases/29.x` on 2026-09-25

## Context

- Work items: AB#635078, AB#648156, AB#649804, AB#649808
- Labels: AL: Apps (W1), Ownership: Manual, Team: Finance
- Systems: integration, inventory
- From the description: "The warning for "Exceeded Quantity Received" shouldn't show when matching against a line that has set "Receipt on Invoice""

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