---
id: object/page/10040-mx
type: object
title: Page 10040 "Sales Tax Lines Subform" (MX)
summary: Page 10040 "Sales Tax Lines Subform" (MX) in the MX country layer (Microsoft.Finance.SalesTax). 4 public procedures, 1 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - mx layer
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: e3bac01aea77159acd8cd830642b51886980e9d6eaf689729742fd12b5d5cb40
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Finance/SalesTax/SalesTaxLinesSubform.Page.al
    title: src/Layers/NA/BaseApp/Local/Finance/SalesTax/SalesTaxLinesSubform.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/mx
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 10040
name: Sales Tax Lines Subform
namespace: Microsoft.Finance.SalesTax
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: MX
counts:
  fields: 0
  procedures: 5
  events: 1
  subscribers: 0
  controls: 12
  actions: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Page 10040 "Sales Tax Lines Subform" (MX)

> Page 10040 "Sales Tax Lines Subform" (MX) in the MX country layer (Microsoft.Finance.SalesTax). 4 public procedures, 1 events. Introduced in BC29, still in BC30.

MX country layer · Microsoft.Finance.SalesTax · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Finance/SalesTax/SalesTaxLinesSubform.Page.al) · facts from BC29

An object of the [MX localization](../../localizations/mx.md), not part of W1.

## Properties

| Property | Value |
|---|---|
| Caption | Sales Tax Lines Subform |
| SourceTable | Sales Tax Amount 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 | Tax Area Code | `Rec."Tax Area Code"` | Specifies the tax area code used on the sales or purchase lines with this Tax Group Code. |
|  | Tax Group Code | `Rec."Tax Group Code"` | Specifies the tax group that is used to calculate and post sales tax. |
|  | Tax Jurisdiction Code | `Rec."Tax Jurisdiction Code"` | Specifies the tax jurisdiction that is used for the Tax Area Code field on the purchase or sales lines. |
|  | Tax Type | `Rec."Tax Type"` | Specifies the type of sales tax. |
|  | Tax % | `Rec."Tax %"` | Specifies the tax percentage that was used on the sales tax amount lines with this combination of tax area code and tax group code. |
|  | Line Amount | `Rec."Line Amount"` | Specifies the net amount (excluding tax) for sales or purchase lines matching the combination of tax area code and tax group code. |
|  | Tax Base Amount | `Rec."Tax Base Amount"` | Specifies the net amount (excluding tax) for sales or purchase lines. |
|  | Quantity | `Rec.Quantity` | Specifies the sum of quantities from sales or purchase lines matching the combination of Tax Area Code and Tax Group Code found on this line. |
|  | Tax Amount | `Rec."Tax Amount"` | Specifies the sales tax calculated for this Sales Tax Amount Line. |
|  | Tax Difference | `Rec."Tax Difference"` | Specifies the difference for the sales tax amount that is used for tax calculations. |
|  | Amount Including Tax | `Rec."Amount Including Tax"` | Specifies the sum of the Tax Base Amount field and the Tax Amount field. |
|  | Expense/Capitalize | `Rec."Expense/Capitalize"` | Specifies if the Tax Amount will be debited to an Expense or Capital account, rather than to a Payable or Receivable account. |

## Events published

- `OnAfterInitGlobals(var TaxAmountEditable: Boolean)` (integration)

## Procedures

- `SetTempTaxAmountLine(var NewSalesTaxLine: Record "Sales Tax Amount Line" temporary)`
- `GetTempTaxAmountLine(var NewSalesTaxLine: Record "Sales Tax Amount Line" temporary)`
- `InitGlobals(NewCurrencyCode: Code[10]; NewAllowVATDifference: Boolean; NewAllowVATDifferenceOnThisTab: Boolean; NewPricesIncludingVAT: Boolean; NewAllowInvDisc: Boolean; NewVATBaseDiscPct: Decimal)`
- `FormCheckVATDifference()`

## Triggers

OnFindRecord, OnInit

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

A MX country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
