---
id: object/page/5850
type: object
title: Page 5850 "Posted Sales Document Lines"
summary: Page 5850 "Posted Sales Document Lines" in Base Application (Microsoft.Sales.History). 4 public procedures, 3 events. Present since at least BC23, still in BC30, changed in BC25.
tier: official
language: en
tags:
  - page
  - base application
versions:
  introduced: null
  last_changed: "25"
  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: c8e708f7d34f25143596b2da2223bb021adca5cb4beb7be6dc8946559bc53a9b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/History/PostedSalesDocumentLines.Page.al
    title: src/Layers/W1/BaseApp/Sales/History/PostedSalesDocumentLines.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: 5850
name: Posted Sales Document Lines
namespace: Microsoft.Sales.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"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 20
  events: 3
  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 5850 "Posted Sales Document Lines"

> Page 5850 "Posted Sales Document Lines" in Base Application (Microsoft.Sales.History). 4 public procedures, 3 events. Present since at least BC23, still in BC30, changed in BC25.

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

## Properties

| Property | Value |
|---|---|
| Caption | Posted Sales Document Lines |
| SourceTable | Customer |
| 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 sales invoice with an original quantity of 20, and 15 of the items have already been returned, the quantity that is available to be reversed on the posted sales invoice is 5. |
|  | Return Original Quantity | `OriginalQuantity` | Specifies whether to use the original quantity to receive quantities associated with specific shipments. For example, on a posted sales invoice with an original quantity of 20, you can match the 20 items with a specific shipment. |
| Control9 | PostedShipmentsBtn | `CurrentMenuTypeOpt` | — |
|  | Posted Shipments | `StrSubstNo('(%1)', Rec."No. of Pstd. Shipments")` | Specifies the lines that represent posted shipments. |
|  | Posted Invoices | `StrSubstNo('(%1)', Rec."No. of Pstd. Invoices" - NoOfPostedPrepmtInvoices())` | Specifies the lines that represent posted invoices. |
|  | Posted Return Receipts | `StrSubstNo('(%1)', Rec."No. of Pstd. Return Receipts")` | Specifies the lines that represent posted return receipts. |
|  | Posted Cr. Memos | `StrSubstNo('(%1)', Rec."No. of Pstd. Credit Memos" - NoOfPostedPrepmtCrMemos())` | Specifies the lines that represent posted sales credit memos. |
|  | CurrentMenuTypeValue | `CurrentMenuType` | — |
| Control18 | PostedInvoices | part [Page 5852 "Get Post.Doc - S.InvLn Subform"](../page/5852.md) | — |
|  | PostedShpts | part [Page 5851 "Get Post.Doc - S.ShptLn Sbfrm"](../page/5851.md) | — |
|  | PostedCrMemos | part [Page 5854 "Get Post.Doc-S.Cr.MemoLn Sbfrm"](../page/5854.md) | — |
|  | PostedReturnRcpts | part [Page 5853 "Get Pst.Doc-RtrnRcptLn Subform"](../page/5853.md) | — |

## Events published

- `OnBeforeCopyLineToDoc(var CopyDocumentMgt: Codeunit "Copy Document Mgt."; CurrentMenuType: Integer)` (integration)
- `OnCopyLineToDocOnBeforeMessage(ToSalesHeader: Record "Sales Header"; var IsHandled: Boolean)` (integration)
- `OnOpenPageOnAfterSetCurrentMenuType(var Customer: Record Customer; var CurrentMenuType: Integer)` (integration)

## Procedures

- `CopyLineToDoc()`: Copies the selected posted document line to the target sales document.
- `ChangeSubMenu(NewMenuType: Integer)`: Changes the visible submenu to display a different posted document type.
- `GetCurrentMenuType(): Integer`: Gets the currently selected menu type.
- `SetToSalesHeader(NewToSalesHeader: Record "Sales Header")`: Sets the target sales header for copying lines.

Plus 13 local procedures.

## Triggers

OnAfterGetRecord, OnInit, OnOpenPage

## Relations

- source table [Table 18 "Customer"](../table/18.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) (3 calls: `CopyLineToDoc → CopySalesLinesToDoc`, `CopyLineToDoc → SetProperties`, `SetSubMenu → IsSalesFillExactCostRevLink`)

## Across versions

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

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 Sales Document Lines")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
