---
id: object/page/10042-us
type: object
title: Page 10042 "Sales Stats." (US)
summary: Page 10042 "Sales Stats." (US) in the US country layer (Microsoft.Sales.Document). 2 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - us 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: fabcdbc377480a1b5992be915226489632296f477f3ac91e53d5109f99c61822
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Sales/Document/SalesStats.Page.al
    title: src/Layers/NA/BaseApp/Local/Sales/Document/SalesStats.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/us
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 10042
name: Sales Stats.
caption: Sales Statistics
namespace: Microsoft.Sales.Document
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: US
counts:
  fields: 0
  procedures: 13
  events: 2
  subscribers: 0
  controls: 22
  actions: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Page 10042 "Sales Stats." (US)

> Page 10042 "Sales Stats." (US) in the US country layer (Microsoft.Sales.Document). 2 events. Introduced in BC29, still in BC30.

US country layer · Microsoft.Sales.Document · captioned "Sales Statistics" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Sales/Document/SalesStats.Page.al) · facts from BC29

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

## Properties

| Property | Value |
|---|---|
| Caption | Sales Statistics |
| SourceTable | Sales Header |
| PageType | Document |

## 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 |
|---|---|---|---|
| General | Amount | `TotalSalesLine."Line Amount"` | Specifies the net amount of all the lines on the sales document. |
|  | Inv. Discount Amount | `TotalSalesLine."Inv. Discount Amount"` | Specifies the invoice discount amount for the sales document. |
|  | Total | `TotalAmount1` | Specifies the total amount less any invoice discount amount (excluding tax) for the sales document. |
|  | Tax Amount | `TaxAmount` | Specifies the total tax amount that has been calculated for all the lines in the sales document. |
|  | Total Incl. Tax | `TotalAmount2` | Specifies the total amount including tax that will be posted to the customer's account for all the lines in the sales document. This is the amount that the customer owes based on this sales document. If the document is a credit memo, it is the amount that you owe to the customer. |
|  | Sales ($) | `TotalSalesLineLCY.Amount` | Specifies your total sales turnover in the fiscal year. It is calculated from amounts excluding tax on all completed and open sales invoices and credit memos. |
|  | Profit ($) | `ProfitLCY` | Specifies the original profit that was associated with the sales when they were originally posted. |
|  | Profit % | `ProfitPct` | Specifies the original profit percentage that was associated with the sales when they were originally posted. |
|  | Quantity | `TotalSalesLine.Quantity` | Specifies the total quantity of G/L account entries, items, and/or resources in the sales document. If the amount is rounded, because the Invoice Rounding check box is selected in the Sales & Receivables Setup window, this field will contain the quantity of items in the sales document plus one. |
|  | Parcels | `TotalSalesLine."Units per Parcel"` | Specifies the number of parcels on the document. |
|  | Net Weight | `TotalSalesLine."Net Weight"` | Specifies the total net weight of the items in the sales document. |
|  | Gross Weight | `TotalSalesLine."Gross Weight"` | Specifies the gross weight of items listed on the document. |
|  | Volume | `TotalSalesLine."Unit Volume"` | Specifies the volume of the items in the sales order. |
|  | BreakdownTitle | label | — |
|  | BreakdownAmt[1] | `BreakdownAmt[1]` | — |
|  | BreakdownAmt[2] | `BreakdownAmt[2]` | — |
|  | BreakdownAmt[3] | `BreakdownAmt[3]` | — |
|  | BreakdownAmt[4] | `BreakdownAmt[4]` | — |
| Content | SubForm | part Sales Tax Lines Subform | — |
| Customer | Balance ($) | `Cust."Balance (LCY)"` | Specifies the customer's balance. |
|  | Credit Limit ($) | `Cust."Credit Limit (LCY)"` | Specifies the credit limit in dollars of the customer on the sales document. The value 0 represents unlimited credit. |
|  | Expended % of Credit Limit ($) | `CreditLimitLCYExpendedPct` | Specifies the Expended Percentage of Credit Limit ($). |

## Events published

- `OnBeforeCalculateSalesTaxSalesStats(var SalesHeader: Record "Sales Header"; var SalesTaxAmountLine: Record "Sales Tax Amount Line"; var SalesTaxAmountLine2: Record "Sales Tax Amount Line"; var SalesTaxCalculationOverridden: Boolean)` (integration)
- `OnUpdateHeaderInfoOnAfterCalcTotalAmount(SalesHeader: Record "Sales Header"; TotalAmount1: Decimal; var TotalAmount2: Decimal; TaxAmount: Decimal)` (integration)

## Procedures

11 local procedures, no public ones.

## Triggers

OnAfterGetRecord, OnOpenPage, OnClosePage, OnQueryClosePage

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

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