---
id: object/page/139
type: object
title: Page 139 "Posted Purch. Invoice Subform"
summary: Page 139 "Posted Purch. Invoice Subform" in Base Application (Microsoft.Purchases.History). 1 public procedures, 1 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: 9a93c6a7443ae069a116d301826562114f9514f328243edc7d95a6a1b6f6cfee
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Purchases/History/PostedPurchInvoiceSubform.Page.al
    title: src/Layers/W1/BaseApp/Purchases/History/PostedPurchInvoiceSubform.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/8959
object_type: page
object_id: 139
name: Posted Purch. Invoice Subform
caption: 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: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 3
  events: 1
  subscribers: 0
  controls: 59
  actions: 8
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 4
  event_subscribers: 0
  calls: 4
  called_by: 0
  implements: 0
---

# Page 139 "Posted Purch. Invoice Subform"

> Page 139 "Posted Purch. Invoice Subform" in Base Application (Microsoft.Purchases.History). 1 public procedures, 1 events. Present since at least BC23, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| Caption | Lines |
| SourceTable | Purch. Inv. 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 | Type | [Type](../table/123.md#fields) | Specifies the line type. <small>from the table field</small> |
|  | Type | `Rec.FormatType()` | Specifies the type of transaction that was posted with the line. |
|  | No. | [No.](../table/123.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/123.md#fields) | Specifies the referenced item number. <small>from the table field</small> |
|  | IC Partner Code | [IC Partner Code](../table/123.md#fields) | Specifies the code of the intercompany partner that the transaction is related to if the entry was created from an intercompany transaction. <small>from the table field</small> |
|  | Variant Code | [Variant Code](../table/123.md#fields) | Specifies the variant of the item on the line. <small>from the table field</small> |
|  | Gen. Bus. Posting Group | [Gen. Bus. Posting Group](../table/123.md#fields) | Specifies the vendor's or customer's trade type to link transactions made for this business partner with the appropriate general ledger account according to the general posting setup. <small>from the table field</small> |
|  | Gen. Prod. Posting Group | [Gen. Prod. Posting Group](../table/123.md#fields) | Specifies the item's product type to link transactions made for this item with the appropriate general ledger account according to the general posting setup. <small>from the table field</small> |
|  | VAT Bus. Posting Group | [VAT Bus. Posting Group](../table/123.md#fields) | Specifies the VAT specification of the involved customer or vendor to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. <small>from the table field</small> |
|  | VAT Prod. Posting Group | [VAT Prod. Posting Group](../table/123.md#fields) | Specifies the VAT specification of the involved item or resource to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. <small>from the table field</small> |
|  | Description | [Description](../table/123.md#fields) | Specifies either the name of, or a description of, the item or general ledger account. <small>from the table field</small> |
|  | Description 2 | [Description 2](../table/123.md#fields) | Specifies information in addition to the description. <small>from the table field</small> |
|  | Return Reason Code | [Return Reason Code](../table/123.md#fields) | Specifies the code explaining why the item was returned. <small>from the table field</small> |
|  | Quantity | [Quantity](../table/123.md#fields) | Specifies the quantity posted from the line. <small>from the table field</small> |
|  | Unit of Measure Code | [Unit of Measure Code](../table/123.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> |
|  | Unit of Measure | [Unit of Measure](../table/123.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> |
|  | Direct Unit Cost | [Direct Unit Cost](../table/123.md#fields) | Specifies the cost of one unit of the selected item or resource. <small>from the table field</small> |
|  | Indirect Cost % | [Indirect Cost %](../table/123.md#fields) | Specifies the percentage of the item's last purchase cost that includes indirect costs, such as freight that is associated with the purchase of the item. <small>from the table field</small> |
|  | Unit Cost (LCY) | [Unit Cost (LCY)](../table/123.md#fields) | Specifies the cost, in LCY, of one unit of the item or resource on the line. |
|  | Unit Price (LCY) | [Unit Price (LCY)](../table/123.md#fields) | Specifies the price, in LCY, of one unit of the item or resource. You can enter a price manually or have it entered according to the Price/Profit Calculation field on the related card. |
|  | Matched Order Lines | [Matched Order Lines](../table/123.md#fields) | Specifies the number of purchase order lines to which this posted purchase invoice line is matched. |
|  | VAT % | [VAT %](../table/123.md#fields) | Specifies the VAT %. <small>from the table field</small> |
|  | Tax Liable | [Tax Liable](../table/123.md#fields) | Specifies if the customer or vendor is liable for sales tax. <small>from the table field</small> |
|  | Tax Area Code | [Tax Area Code](../table/123.md#fields) | Specifies the tax area that is used to calculate and post sales tax. <small>from the table field</small> |
|  | Tax Group Code | [Tax Group Code](../table/123.md#fields) | Specifies the tax group that is used to calculate and post sales tax. <small>from the table field</small> |
|  | Use Tax | [Use Tax](../table/123.md#fields) | Specifies that the purchase is subject to use tax. Use tax is a sales tax that is paid on items that are purchased by a company and are used by that company instead of being sold to a customer. <small>from the table field</small> |
|  | Line Discount % | [Line Discount %](../table/123.md#fields) | Specifies the discount percentage that is granted for the item on the line. <small>from the table field</small> |
|  | Line Amount | [Line Amount](../table/123.md#fields) | Specifies the net amount, excluding any invoice discount amount, that must be paid for products on the line. <small>from the table field</small> |
|  | Line Discount Amount | [Line Discount Amount](../table/123.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/123.md#fields) | Specifies whether the invoice line could have been included in an invoice discount calculation. |
|  | NonDeductibleVATBase | [Non-Deductible VAT Base](../table/123.md#fields) | Specifies the amount of VAT that is not deducted due to the type of goods or services purchased. <small>from the table field</small> |
|  | NonDeductibleVATAmount | [Non-Deductible VAT Amount](../table/123.md#fields) | Specifies the amount of the transaction for which VAT is not applied, due to the type of goods or services purchased. <small>from the table field</small> |
|  | Job No. | [Job No.](../table/123.md#fields) | Specifies the number of the related project. <small>from the table field</small> |
|  | Job Task No. | [Job Task No.](../table/123.md#fields) | Specifies the number of the related project task. <small>from the table field</small> |
|  | Insurance No. | [Insurance No.](../table/123.md#fields) | Specifies the insurance number on the purchase invoice line. <small>from the table field</small> |
|  | Budgeted FA No. | [Budgeted FA No.](../table/123.md#fields) | Specifies the number of a fixed asset with the Budgeted Asset check box selected. When you post the journal or document line, an additional entry is created for the budgeted fixed asset where the amount has the opposite sign. <small>from the table field</small> |
|  | FA Posting Type | [FA Posting Type](../table/123.md#fields) | Specifies the posting type, if Account Type field contains Fixed Asset. <small>from the table field</small> |
|  | Depr. until FA Posting Date | [Depr. until FA Posting Date](../table/123.md#fields) | Specifies if depreciation was calculated until the FA posting date of the line. <small>from the table field</small> |
|  | Depreciation Book Code | [Depreciation Book Code](../table/123.md#fields) | Specifies the code for the depreciation book to which the line will be posted if you have selected Fixed Asset in the Type field for this line. <small>from the table field</small> |
|  | Depr. Acquisition Cost | [Depr. Acquisition Cost](../table/123.md#fields) | Specifies if, when this line was posted, the additional acquisition cost posted on the line was depreciated in proportion to the amount by which the fixed asset had already been depreciated. <small>from the table field</small> |
|  | Appl.-to Item Entry | [Appl.-to Item Entry](../table/123.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> |
|  | Deferral Code | [Deferral Code](../table/123.md#fields) | Specifies the deferral template that governs how expenses paid with this purchase document are deferred to the different accounting periods when the expenses were incurred. <small>from the table field</small> |
|  | Shortcut Dimension 1 Code | [Shortcut Dimension 1 Code](../table/123.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/123.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> |
|  | ShortcutDimCode[3] | `ShortcutDimCode[3]` | — |
|  | ShortcutDimCode[4] | `ShortcutDimCode[4]` | — |
|  | ShortcutDimCode[5] | `ShortcutDimCode[5]` | — |
|  | ShortcutDimCode[6] | `ShortcutDimCode[6]` | — |
|  | ShortcutDimCode[7] | `ShortcutDimCode[7]` | — |
|  | ShortcutDimCode[8] | `ShortcutDimCode[8]` | — |
|  | Unit Gross Weight | [Gross Weight](../table/123.md#fields) | Specifies the gross weight of one unit of the item. In the purchase statistics window, the gross weight on the line is included in the total gross weight of all the lines for the particular purchase document. <small>from the table field</small> |
|  | Unit Net Weight | [Net Weight](../table/123.md#fields) | Specifies the net weight of one unit of the item. In the purchase statistics window, the net weight on the line is included in the total net weight of all the lines for the particular purchase document. <small>from the table field</small> |
|  | Unit Volume | [Unit Volume](../table/123.md#fields) | Specifies the volume of one unit of the item. In the purchase statistics window, the volume of one unit of the item on the line is included in the total volume of all the lines for the particular purchase document. <small>from the table field</small> |
|  | Units per Parcel | [Units per Parcel](../table/123.md#fields) | Specifies the number of units per parcel of the item. In the purchase statistics window, the number of units per parcel on the line helps to determine the total number of units for all the lines for the particular purchase document. <small>from the table field</small> |
|  | Spend Request No. | [Spend Request No.](../table/123.md#fields) | Specifies the spend request that this purchase document relates to. <small>from the table field</small> |
| Control25 | Invoice Discount Amount | `TotalPurchInvHeader."Invoice Discount Amount"` | Specifies a discount amount that is deducted from the value of the Total Incl. VAT field, based on purchase lines where the Allow Invoice Disc. field is selected. |
| Control7 | Total Amount Excl. VAT | `TotalPurchInvHeader.Amount` | Specifies the sum of the value in the Line Amount Excl. VAT field on all lines in the document minus any discount amount in the Invoice Discount Amount field. |
|  | Total VAT | `VATAmount` | Specifies the sum of VAT amounts on all lines in the document. |
|  | Total Amount Incl. VAT | `TotalPurchInvHeader."Amount Including VAT"` | Specifies the sum of the value in the Line Amount Incl. VAT field on all lines in the document minus any discount amount in the Invoice Discount Amount field. |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Line | 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. |  |
|  | Comments | View or add comments for the record. |  |
|  | Item Tracking Entries | View serial, lot or package numbers that are assigned to items. |  |
|  | Item Receipt Lines | View posted receipts for the item. |  |
|  | Document Line Tracking | View related open, posted, or archived documents or document lines. |  |
|  | Deferral Schedule | View the deferral schedule that governs how expenses paid with this purchase document were deferred to different accounting periods when the document was posted. |  |
|  | Attachments | Add a file as an attachment. You can attach images as well as documents. |  |
|  | Matched Order Lines | View order lines related to this posted purchase invoice line. |  |

## Events published

- `OnAfterSetDimensionsVisibility()` (integration)

## Procedures

- `ShowDocumentLineTracking()`

Plus 1 local procedures.

## Triggers

OnAfterGetCurrRecord, OnAfterGetRecord, OnInit, OnOpenPage

## Relations

- source table [Table 123 "Purch. Inv. Line"](../table/123.md)

## Extended by

- [Page extension 4856 "AA Post. Purch. Inv. Subform"](../pageextension/4856.md)
- [Page extension 5029 "SD Posted Purch. Inv. Subform"](../pageextension/5029.md)
- [Page extension 6212 "Sust. Pstd Purch. Inv. Subform"](../pageextension/6212.md)
- [Page extension 8073 "Posted Purch Inv. Subform"](../pageextension/8073.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 408 "DimensionManagement"](../codeunit/408.md) (1 call: `SetDimensionsVisibility → UseShortcutDims`)
- [Codeunit 57 "Document Totals"](../codeunit/57.md) (1 call: `OnAfterGetCurrRecord → CalculatePostedPurchInvoiceTotals`)
- [Codeunit 6200 "Non-Deductible VAT"](../codeunit/6200.md) (1 call: `OnOpenPage → ShowNonDeductibleVATInLines`)
- [Codeunit 9179 "Application Area Mgmt. Facade"](../codeunit/9179.md) (1 call: `OnInit → IsFoundationEnabled`)

## Recent changes

- 2026-07-31 [#8959 Deliverable 638799: Spend Requests in Base App](../../changes/bcapps/8959.md) (main, BC30, feature)

## 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: "Posted Purch. Invoice Subform")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
