---
id: object/page/5852
type: object
title: Page 5852 "Get Post.Doc - S.InvLn Subform"
summary: Page 5852 "Get Post.Doc - S.InvLn Subform" in Base Application (Microsoft.Sales.History). 2 public procedures, 4 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - page
  - base application
versions:
  introduced: null
  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: 2148ea58072b6e45e659ccfdbccc6f3a2cf2f4b1cf750664494349e0a9a40512
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/History/GetPostDocSInvLnSubform.Page.al
    title: src/Layers/W1/BaseApp/Sales/History/GetPostDocSInvLnSubform.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: 5852
name: Get Post.Doc - S.InvLn Subform
caption: 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: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 12
  events: 4
  subscribers: 0
  controls: 37
  actions: 3
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Page 5852 "Get Post.Doc - S.InvLn Subform"

> Page 5852 "Get Post.Doc - S.InvLn Subform" in Base Application (Microsoft.Sales.History). 2 public procedures, 4 events. Present since at least BC23, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| Caption | Lines |
| SourceTable | Sales Invoice 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 |
|---|---|---|---|
| Control1 | Document No. | [Document No.](../table/113.md#fields) | Specifies the invoice number. |
|  | Posting Date | `SalesInvHeader."Posting Date"` | Specifies the posting date of the record. |
|  | Shipment Date | [Shipment Date](../table/113.md#fields) | Specifies when items on the document are shipped or were shipped. A shipment date is usually calculated from a requested delivery date plus lead time. <small>from the table field</small> |
|  | Bill-to Customer No. | [Bill-to Customer No.](../table/113.md#fields) | Specifies the number of the customer that you send or sent the invoice or credit memo to. <small>from the table field</small> |
|  | Sell-to Customer No. | [Sell-to Customer No.](../table/113.md#fields) | Specifies the number of the customer. <small>from the table field</small> |
|  | Type | [Type](../table/113.md#fields) | Specifies the line type. <small>from the table field</small> |
|  | No. | [No.](../table/113.md#fields) | Specifies the number of the involved entry or record, according to the specified number series. <small>from the table field</small> |
|  | Item Reference No. | [Item Reference No.](../table/113.md#fields) | Specifies the referenced item number. <small>from the table field</small> |
|  | Variant Code | [Variant Code](../table/113.md#fields) | Specifies the variant of the item on the line. <small>from the table field</small> |
|  | Nonstock | [Nonstock](../table/113.md#fields) | Specifies that this item is a catalog item. <small>from the table field</small> |
|  | Description | [Description](../table/113.md#fields) | Specifies the name of the item or general ledger account, or some descriptive text. <small>from the table field</small> |
|  | Description 2 | [Description 2](../table/113.md#fields) | Specifies information in addition to the description. <small>from the table field</small> |
|  | Return Reason Code | [Return Reason Code](../table/113.md#fields) | Specifies the code explaining why the item was returned. <small>from the table field</small> |
|  | Location Code | [Location Code](../table/113.md#fields) | Specifies the location in which the invoice line was registered. <small>from the table field</small> |
|  | Bin Code | [Bin Code](../table/113.md#fields) | Specifies the bin where the items are picked or put away. <small>from the table field</small> |
|  | Shortcut Dimension 1 Code | [Shortcut Dimension 1 Code](../table/113.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 | [Shortcut Dimension 2 Code](../table/113.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> |
|  | Unit of Measure Code | [Unit of Measure Code](../table/113.md#fields) | Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted. <small>from the table field</small> |
|  | Quantity | [Quantity](../table/113.md#fields) | Specifies the number of units of the item specified on the line. <small>from the table field</small> |
|  | Qty. Not Returned | `QtyNotReturned` | Specifies the quantity from the posted document line that has been shipped to the customer and not returned by the customer. |
|  | Qty. Returned | `GetQtyReturned()` | Specifies the quantity that was returned. |
|  | Unit of Measure | [Unit of Measure](../table/113.md#fields) | Specifies the name of the item or resource's unit of measure, such as piece or hour. <small>from the table field</small> |
|  | Unit Cost (LCY) | [Unit Cost (LCY)](../table/113.md#fields) | Specifies the cost, in LCY, of one unit of the item or resource on the line. |
|  | Reverse Unit Cost (LCY) | `RevUnitCostLCY` | Specifies the unit cost that will appear on the new document lines. |
|  | Unit Price | `UnitPrice` | Specifies the item's unit price. |
|  | Line Amount | `LineAmount` | Specifies the net amount, excluding any invoice discount amount, that must be paid for products on the line. |
|  | Currency Code | `SalesInvHeader."Currency Code"` | Specifies the code for the currency that amounts are shown in. |
|  | Prices Including VAT | `SalesInvHeader."Prices Including VAT"` | Specifies if the Unit Price and Line Amount fields on document lines should be shown with or without VAT. |
|  | Line Discount % | [Line Discount %](../table/113.md#fields) | Specifies the discount percentage that is granted for the item on the line. <small>from the table field</small> |
|  | Line Discount Amount | [Line Discount Amount](../table/113.md#fields) | Specifies the discount amount that is granted for the item on the line. <small>from the table field</small> |
|  | Allow Invoice Disc. | [Allow Invoice Disc.](../table/113.md#fields) | Specifies if the invoice line is included when the invoice discount is calculated. <small>from the table field</small> |
|  | Inv. Discount Amount | [Inv. Discount Amount](../table/113.md#fields) | Specifies the total calculated invoice discount amount for the line. <small>from the table field</small> |
|  | Job No. | [Job No.](../table/113.md#fields) | Specifies the number of the related project. <small>from the table field</small> |
|  | Blanket Order No. | [Blanket Order No.](../table/113.md#fields) | Specifies the number of the blanket order that the record originates from. <small>from the table field</small> |
|  | Blanket Order Line No. | [Blanket Order Line No.](../table/113.md#fields) | Specifies the number of the blanket order line that the record originates from. <small>from the table field</small> |
|  | Appl.-from Item Entry | [Appl.-from Item Entry](../table/113.md#fields) | Specifies the number of the item ledger entry that the document or journal line is applied from. <small>from the table field</small> |
|  | Appl.-to Item Entry | [Appl.-to Item Entry](../table/113.md#fields) | Specifies the number of the item ledger entry that the document or journal line is applied to. <small>from the table field</small> |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Line | Show Document | Open the document that the selected line exists on. |  |
|  | 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 Tracking Lines | View or edit serial, lot and package numbers that are assigned to the item on the document or journal line. |  |

## Events published

- `OnBeforeIsShowRec(var SalesInvoiceLine: Record "Sales Invoice Line"; var SalesInvoiceLine2: Record "Sales Invoice Line"; var ReturnValue: Boolean; var IsHandled: Boolean)` (integration)
- `OnFindRecordOnBeforeFind(var SalesInvoiceLine: Record "Sales Invoice Line"; var Which: Text; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnIsShowRecOnBeforeCheckIsTypeNotItem(var SalesInvoiceLine: Record "Sales Invoice Line"; var QtyNotReturned: Decimal; var ReturnValue: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeGetQtyReturned(var SalesInvoiceLine: Record "Sales Invoice Line"; QtyNotReturned: Decimal; var ReturnValue: Decimal; var IsHandled: Boolean)` (integration)

## Procedures

- `Initialize(NewToSalesHeader: Record "Sales Header"; NewRevQtyFilter: Boolean; NewFillExactCostReverse: Boolean; NewVisible: Boolean)`: Initializes the subform with target header, filter, and visibility settings.
- `GetSelectedLine(var FromSalesInvLine: Record "Sales Invoice Line")`: Gets the currently selected invoice line with selection filter applied.

Plus 6 local procedures.

## Triggers

OnAfterGetRecord, OnFindRecord, OnNextRecord, OnOpenPage

## Relations

- source table [Table 113 "Sales Invoice Line"](../table/113.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 700 "Page Management"](../codeunit/700.md) (1 call: `ShowDocument → PageRun`)

## Across versions

- Present in: BC23-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). 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: "Get Post.Doc - S.InvLn Subform")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
