---
id: object/page/5855
type: object
title: Page 5855 "Posted Purchase Document Lines"
summary: Page 5855 "Posted Purchase Document Lines" in Base Application (Microsoft.Purchases.History). 4 public procedures, 4 events. Present since at least BC23, still in BC30, changed in BC25-26.
tier: official
language: en
tags:
  - page
  - base application
versions:
  introduced: null
  last_changed: "26"
  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: 9a254e30fb8a5a2c9280a30eef80fdeead0387e66df2247ba347500351c13e61
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Purchases/History/PostedPurchaseDocumentLines.Page.al
    title: src/Layers/W1/BaseApp/Purchases/History/PostedPurchaseDocumentLines.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 5855
name: Posted Purchase Document Lines
namespace: Microsoft.Purchases.History
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
  - "26"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 13
  events: 4
  subscribers: 0
  controls: 12
  actions: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Page 5855 "Posted Purchase Document Lines"

> Page 5855 "Posted Purchase Document Lines" in Base Application (Microsoft.Purchases.History). 4 public procedures, 4 events. Present since at least BC23, still in BC30, changed in BC25-26.

Base Application · Microsoft.Purchases.History · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Purchases/History/PostedPurchaseDocumentLines.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Posted Purchase Document Lines |
| SourceTable | Vendor |
| PageType | ListPlus |

## 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 |
|---|---|---|---|
| Options | Show Reversible Lines Only | `ShowRevLinesOnly` | Specifies if only lines with quantities that are available to be reversed are shown. For example, on a posted purchase invoice with an original quantity of 20, and 15 of the items have already been sold, the quantity that is available to be reversed on the posted purchase invoice is 5. |
|  | Return Original Quantity | `OriginalQuantity` | Specifies whether to use the original quantity to return quantities associated with specific receipts. For example, on a posted purchase invoice with an original quantity of 20, you can match this quantity with a specific shipment received even if some of the 20 items have been sold. |
| Control9 | PostedReceiptsBtn | `CurrentMenuTypeOpt` | — |
|  | Posted Receipts | `StrSubstNo('(%1)', Rec."No. of Pstd. Receipts")` | Specifies the lines that represent posted receipts. |
|  | Posted Invoices | `StrSubstNo('(%1)', Rec."No. of Pstd. Invoices" - NoOfPostedPrepmtInvoices())` | Specifies the lines that represent posted invoices. |
|  | Posted Return Shipments | `StrSubstNo('(%1)', Rec."No. of Pstd. Return Shipments")` | Specifies the lines that represent posted return shipments. |
|  | Posted Cr. Memos | `StrSubstNo('(%1)', Rec."No. of Pstd. Credit Memos" - NoOfPostedPrepmtCrMemos())` | Specifies the lines that represent posted purchase credit memos. |
|  | CurrentMenuTypeValue | `CurrentMenuType` | — |
| Control18 | PostedInvoices | part [Page 5857 "Get Post.Doc - P.InvLn Subform"](../page/5857.md) | — |
|  | PostedRcpts | part [Page 5856 "Get Post.Doc - P.RcptLn Sbfrm"](../page/5856.md) | — |
|  | PostedCrMemos | part [Page 5859 "Get Post.Doc-P.Cr.MemoLn Sbfrm"](../page/5859.md) | — |
|  | PostedReturnShpts | part [Page 5858 "Get Pst.Doc-RtrnShptLn Subform"](../page/5858.md) | — |

## Events published

- `OnBeforeCopyLineToDoc(var CopyDocumentMgt: Codeunit "Copy Document Mgt."; CurrentMenuType: Integer)` (integration)
- `OnAfterCopyLineToDoc(var PurchaseHeader: Record "Purchase Header")` (integration)
- `OnBeforeShowLinesNotCopiedMessage(var IsHandled: Boolean)` (integration)
- `OnOpenPageOnAfterSetCurrentMenuType(var Vendor: Record Vendor; var CurrentMenuType: Integer)` (integration)

## Procedures

- `CopyLineToDoc()`
- `ChangeSubMenu(NewMenuType: Integer)`
- `GetCurrentMenuType(): Integer`
- `SetToPurchHeader(NewToPurchHeader: Record "Purchase Header")`

Plus 5 local procedures.

## Triggers

OnAfterGetRecord, OnInit, OnOpenPage

## Relations

- source table [Table 23 "Vendor"](../table/23.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 6620 "Copy Document Mgt."](../codeunit/6620.md) (4 calls: `CopyLineToDoc → CopyPurchaseLinesToDoc`, `CopyLineToDoc → SetProperties`, `CopyLineToDoc → ShowMessageReapply`, …)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25-26

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). The call sections above are our own, per object, from the BC29 call graph. 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: "Posted Purchase Document Lines")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
