---
id: object/page/6183
type: object
title: Page 6183 "E-Doc. Purchase Draft Subform"
summary: Page 6183 "E-Doc. Purchase Draft Subform" in EDocument (Microsoft.eServices.EDocument.Processing.Import.Purchase). 1 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - edocument
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 1ce661771e0c27292a7ae4543caf860c03b8119bce5f9c2f39fde98507abe1bf
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/Import/Purchase/EDocPurchaseDraftSubform.Page.al
    title: src/Apps/W1/EDocument/app/src/Processing/Import/Purchase/EDocPurchaseDraftSubform.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11815
    - change/bcapps/10700
    - change/bcapps/10526
    - change/bcapps/7546
    - change/bcapps/9711
    - change/bcapps/9124
object_type: page
object_id: 6183
name: E-Doc. Purchase Draft Subform
caption: Lines
namespace: Microsoft.eServices.EDocument.Processing.Import.Purchase
app: EDocument
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 13
  events: 0
  subscribers: 0
  controls: 18
  actions: 13
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 11
  calls: 0
  called_by: 0
  implements: 0
---

# Page 6183 "E-Doc. Purchase Draft Subform"

> Page 6183 "E-Doc. Purchase Draft Subform" in EDocument (Microsoft.eServices.EDocument.Processing.Import.Purchase). 1 public procedures. Introduced in BC29, still in BC30.

EDocument · Microsoft.eServices.EDocument.Processing.Import.Purchase · captioned "Lines" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/Import/Purchase/EDocPurchaseDraftSubform.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Lines |
| SourceTable | E-Document Purchase Line |
| PageType | ListPart |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| DocumentLines | Description | [Description](../table/6101.md#fields) | Specifies the description. <small>from the table field</small> |
|  | Order line match | `OrderMatchedCaption` | Specifies whether this line is matched to a purchase order line. |
|  | Warnings | `MatchWarningsCaption` | Specifies any warnings related to matching this line to a purchase order line. |
|  | Line Type | [[BC] Purchase Line Type](../table/6101.md#fields) | Specifies the type of entity that will be posted for this purchase line, such as Item, Resource, or G/L Account. <small>from the table field</small> |
|  | No. | [[BC] Purchase Type No.](../table/6101.md#fields) | Specifies what you're selling. The options vary, depending on what you choose in the Type field. <small>from the table field</small> |
|  | Name | `MatchedEntityName` | Specifies the name of the matched item, G/L account, or other entity for this line. This value is read-only and reflects the matched record, not the extracted invoice description. |
|  | VAT Prod. Posting Group | [[BC] VAT Prod. Posting Group](../table/6101.md#fields) | Specifies the VAT product posting group resolved from the extracted VAT rate. <small>from the table field</small> |
|  | Item Reference No. | [[BC] Item Reference No.](../table/6101.md#fields) | Specifies the item reference number. <small>from the table field</small> |
|  | Unit Of Measure | [[BC] Unit of Measure](../table/6101.md#fields) | Specifies the unit of measure code. <small>from the table field</small> |
|  | Variant Code | [[BC] Variant Code](../table/6101.md#fields) | Specifies the variant code. <small>from the table field</small> |
|  | Quantity | [Quantity](../table/6101.md#fields) | Specifies the quantity. <small>from the table field</small> |
|  | Direct Unit Cost | [Unit Price](../table/6101.md#fields) | Specifies the direct unit cost. <small>from the table field</small> |
|  | Line Discount | [Total Discount](../table/6101.md#fields) | Specifies the line discount. <small>from the table field</small> |
|  | Line Amount | `LineAmount` | Specifies the line amount. |
|  | Deferral Code | [[BC] Deferral Code](../table/6101.md#fields) | Specifies the deferral code. <small>from the table field</small> |
|  | Shortcut Dimension 1 Code | [[BC] Shortcut Dimension 1 Code](../table/6101.md#fields) | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Shortcut Dimension 2 Code | [[BC] Shortcut Dimension 2 Code](../table/6101.md#fields) | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Additional columns | `AdditionalColumns` | Specifies the additional columns considered. |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Values from history | The values for this line were retrieved from previously posted invoices. Open the invoice to see the values. |  |
| Order matching | Match to order lines | Matches this incoming invoice line to purchase order lines. |  |
|  | Specify receipt lines | Specifies the corresponding receipt lines for the matched order lines. |  |
|  | Open matched orders | Opens the matched purchase orders. |  |
|  | Open matched receipts | Opens the matched purchase receipts. |  |
|  | Remove match | Removes any matches between this invoice line and purchase order or receipt lines. |  |
| Related Information | Dimensions | View or edit dimensions, such as area, project, or department, that you can assign to sales and purchase documents to distribute costs and analyze transaction history. |  |
|  | Item References | View item references for the vendor associated with this e-document. |  |
|  | Text-to-Account Mappings | Opens the Text-to-Account Mapping filtered for the current vendor. |  |
|  | Historical Purchase Lines | Opens historical purchase invoice lines to help match this draft line based on past invoices. |  |
|  | Chart of Accounts | Opens the Chart of Accounts to look up G/L accounts for this line. |  |
|  | Items | Opens the item list to look up items for this line. |  |
|  | Deferral Templates | Opens the list of deferral templates for assigning deferrals to this line. |  |

## Trigger event subscribers

- OnAfterValidateEvent(Deferral Code): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageDeferralCode
- OnAfterValidateEvent(Direct Unit Cost): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageDirectUnitCost
- OnAfterValidateEvent(Item Reference No.): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageItemReferenceNo
- OnAfterValidateEvent(Line Type): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageLineType
- OnAfterValidateEvent(No.): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageNo
- OnAfterValidateEvent(Quantity): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageQuantity
- OnAfterValidateEvent(Shortcut Dimension 1 Code): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageShortcutDim1
- OnAfterValidateEvent(Shortcut Dimension 2 Code): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageShortcutDim2
- OnAfterValidateEvent(Total Discount): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageTotalDiscount
- OnAfterValidateEvent(Unit Of Measure): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageUnitOfMeasure
- OnAfterValidateEvent(Variant Code): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageVariantCode

## Procedures

- `SetEDocumentPurchaseHeader(EDocPurchHeader: Record "E-Document Purchase Header")` (internal)

Plus 12 local procedures.

## Triggers

OnOpenPage, OnNewRecord, OnAfterGetCurrRecord, OnAfterGetRecord, OnDeleteRecord

## Relations

- source table [Table 6101 "E-Document Purchase Line"](../table/6101.md)

## Recent changes

- 2026-09-24 [#11815 Improvements to E-Documents PO matching (E2E findings)](../../changes/bcapps/11815.md) (main, BC30, fix)
- 2026-09-01 [#10700 29.x: PO matching API, E-Documents integration and receipt-on-invoice line tracking](../../changes/bcapps/10700.md) (releases/29.x, BC29, feature)
- 2026-08-28 [#10526 Use BaseApp's new PO Matching module in E-Documents](../../changes/bcapps/10526.md) (main, BC30, feature)
- 2026-08-18 [#7546 [Payables Agent] Agent-driven line matching](../../changes/bcapps/7546.md) (main, BC30, feature)
- 2026-08-14 [#9711 Fix E-Document purchase draft header Sub Total overwrite; notify on mismatch](../../changes/bcapps/9711.md) (main, BC30, fix)
- 2026-07-08 [#9124 [E-Document] [Payables Agent] Users can personalize-in the Name column on the draft page](../../changes/bcapps/9124.md) (main, BC30, feature)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "page", object_name: "E-Doc. Purchase Draft Subform")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
