---
id: object/page/10052-mx
type: object
title: Page 10052 "Service Order Stats." (MX)
summary: Page 10052 "Service Order Stats." (MX) in the MX country layer (Microsoft.Service.Document). 4 public procedures, 2 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: 249dfa6b9c068071687cfb88ca92ba113c35211080401be3b885e32ab2b884f3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Service/Local/Document/ServiceOrderStats.Page.al
    title: src/Layers/NA/BaseApp/Service/Local/Document/ServiceOrderStats.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: 10052
name: Service Order Stats.
namespace: Microsoft.Service.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: MX
counts:
  fields: 0
  procedures: 16
  events: 2
  subscribers: 0
  controls: 81
  actions: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Page 10052 "Service Order Stats." (MX)

> Page 10052 "Service Order Stats." (MX) in the MX country layer (Microsoft.Service.Document). 4 public procedures, 2 events. Introduced in BC29, still in BC30.

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

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

## Properties

| Property | Value |
|---|---|
| Caption | Service Order Stats. |
| SourceTable | Service Header |
| PageType | Card |

## 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 | TotalServLine[1].""Line Amount"" | `TotalServLine[1]."Line Amount"` | — |
|  | Inv. Discount Amount | `TotalServLine[1]."Inv. Discount Amount"` | Specifies the invoice discount amount for the service order. |
|  | TotalAmount1[1] | `TotalAmount1[1]` | — |
|  | Tax Amount | `VATAmount[1]` | Specifies the total tax amount that has been calculated from all the lines in the service order. |
|  | TotalAmount2[1] | `TotalAmount2[1]` | — |
|  | Sales ($) | `TotalServLineLCY[1].Amount` | Specifies the sales amount, in dollars. |
|  | Original Cost ($) | `TotalServLineLCY[1]."Unit Cost (LCY)"` | Specifies the original cost of the items on the service order. |
|  | Profit ($) | `ProfitLCY[1]` | Specifies the profit, expressed as an amount. |
|  | Original Profit % | `ProfitPct[1]` | Specifies the profit, expressed as a percentage, which was associated with the service order when it was originally posted. |
|  | Quantity | `TotalServLine[1].Quantity` | Specifies the quantity of the item/resource on the service order. |
|  | Parcels | `TotalServLine[1]."Units per Parcel"` | Specifies the number of parcels on the document. |
|  | Net Weight | `TotalServLine[1]."Net Weight"` | Specifies the total net weight of items in the service order. |
|  | Gross Weight | `TotalServLine[1]."Gross Weight"` | Specifies the gross weight of items in the service order. |
|  | Volume | `TotalServLine[1]."Unit Volume"` | Specifies the volume of the items in the service order. |
|  | BreakdownTitle | label | — |
|  | BreakdownAmt | `BreakdownAmt[1, 1]` | — |
|  | BreakdownAmt | `BreakdownAmt[1, 2]` | — |
|  | BreakdownAmt | `BreakdownAmt[1, 3]` | — |
|  | BreakdownAmt | `BreakdownAmt[1, 4]` | — |
|  | No. of VAT Lines | `TempSalesTaxLine1.Count` | Specifies the number of VAT lines on the service order. |
| Details | Control1480070 | label | — |
|  | Quantity | `TotalServLine[2].Quantity` | Specifies the quantity of the item/resource on the service order. |
|  | Quantity | `TotalServLine[4].Quantity` | Specifies the quantity of the item/resource on the service order. |
|  | TotalServLine[2].""Line Amount"" | `TotalServLine[2]."Line Amount"` | — |
|  | Inv. Discount Amount | `TotalServLine[2]."Inv. Discount Amount"` | Specifies the invoice discount amount for the service order. |
|  | TotalAmount1[2] | `TotalAmount1[2]` | — |
|  | VATAmount[2] | `VATAmount[2]` | — |
|  | TotalAmount2[2] | `TotalAmount2[2]` | — |
|  | Sales (LCY) | `TotalServLineLCY[2].Amount` | Specifies the sales amount, in local currency. |
|  | Original Profit (LCY) | `ProfitLCY[2]` | Specifies the profit, expressed as an amount in local currency, that was associated with the service order, when it was originally posted. |
|  | Adjusted Profit (LCY) | `AdjProfitLCY[2]` | Specifies the adjusted profit of the service order, in local currency. |
|  | Original Profit % | `ProfitPct[2]` | Specifies the profit, expressed as a percentage, which was associated with the service order when it was originally posted. |
|  | Adjusted Profit % | `AdjProfitPct[2]` | Specifies the adjusted profit of the contents of the entire service order, in local currency. |
|  | Original Cost (LCY) | `TotalServLineLCY[2]."Unit Cost (LCY)"` | Specifies the original cost of the items on the service order. |
|  | Adjusted Cost (LCY) | `TotalAdjCostLCY[2]` | Specifies the adjusted cost of the service order, in local currency. |
|  | Cost Adjmt. Amount (LCY) | `TotalAdjCostLCY[2] - TotalServLineLCY[2]."Unit Cost (LCY)"` | Specifies the cost adjustment amount, in local currency. |
|  | Control1480102 | label | — |
|  | Quantity | `TotalServLine[2].Quantity + TotalServLine[4].Quantity` | Specifies the quantity of the item/resource on the service order. |
|  | Control1480100 | `TotalServLine[2]."Line Amount"` | — |
|  | Inv. Discount Amount | `TotalServLine[2]."Inv. Discount Amount"` | Specifies the invoice discount amount for the service order. |
|  | Control1480098 | `TotalAmount1[2]` | — |
|  | Control1480097 | `VATAmount[2]` | — |
|  | Control1480096 | `TotalAmount2[2]` | — |
|  | Amount (LCY) | `TotalServLineLCY[2].Amount` | Specifies the amount of the service order, in local currency. |
|  | Original Profit (LCY) | `ProfitLCY[4]` | Specifies the profit, expressed as an amount in local currency, which was associated with the service order, when it was originally posted. |
|  | Profit (LCY) | `ProfitLCY[2] + ProfitLCY[4]` | Specifies the profit in LCY. |
|  | Adjusted Profit (LCY) | `AdjProfitLCY[4]` | Specifies the adjusted profit of the service order, in local currency. |
|  | Profit (LCY) | `ProfitLCY[2] + ProfitLCY[4]` | Specifies the profit in LCY. |
|  | Original Profit % | `ProfitPct[4]` | Specifies the profit, expressed as a percentage, which was associated with the service order when it was originally posted. |
|  | Profit % | `GetDetailsTotal()` | Specifies the profit expressed as a percentage. |
|  | Adjusted Profit % | `AdjProfitPct[4]` | Specifies the adjusted profit of the contents of the entire service order, in local currency. |
|  | Profit % | `GetAdjDetailsTotal()` | Specifies the profit, expressed as a percentage. |
|  | Cost (LCY) | `TotalServLineLCY[4]."Unit Cost (LCY)"` | Specifies the cost of the service order, in local currency. |
|  | Cost (LCY) | `TotalServLineLCY[2]."Unit Cost (LCY)" + TotalServLineLCY[4]."Unit Cost (LCY)"` | Specifies the cost of the service order, in local currency. |
|  | Adjusted Cost (LCY) | `TotalAdjCostLCY[4]` | Specifies the adjusted cost of the service order, in local currency. |
|  | Cost (LCY) | `TotalAdjCostLCY[2] + TotalAdjCostLCY[4]` | Specifies the cost of the service order, in local currency. |
|  | Adjustment Cost (LCY) | `TotalAdjCostLCY[4] - TotalServLineLCY[4]."Unit Cost (LCY)"` | Specifies the adjusted cost of the service order, in local currency. |
|  | Cost (LCY) | `(TotalAdjCostLCY[2] - TotalServLineLCY[2]."Unit Cost (LCY)") + (TotalAdjCostLCY[4] - TotalServLineLCY[4]."Unit Cost (LCY)")` | Specifies the cost of the service order, in local currency. |
| Shipping | TotalServLine[3].""Line Amount"" | `TotalServLine[3]."Line Amount"` | — |
|  | Inv. Discount Amount | `TotalServLine[3]."Inv. Discount Amount"` | Specifies the invoice discount amount for the service order. |
|  | TotalAmount1[3] | `TotalAmount1[3]` | — |
|  | Tax Amount | `VATAmount[3]` | Specifies the total tax amount that has been calculated from all the lines in the service order. |
|  | TotalAmount2[3] | `TotalAmount2[3]` | — |
|  | Sales ($) | `TotalServLineLCY[3].Amount` | Specifies the sales amount, in dollars. |
|  | Cost ($) | `TotalServLineLCY[3]."Unit Cost (LCY)"` | Specifies the cost of the service order, in dollars. |
|  | Profit ($) | `ProfitLCY[3]` | Specifies the profit, expressed as an amount. |
|  | Profit % | `ProfitPct[3]` | Specifies the profit, expressed as a percentage. |
|  | Quantity | `TotalServLine[3].Quantity` | Specifies the quantity of the item/resource on the service order. |
|  | Parcels | `TotalServLine[3]."Units per Parcel"` | Specifies the number of parcels on the document. |
|  | Net Weight | `TotalServLine[3]."Net Weight"` | Specifies the total net weight of items in the service order. |
|  | Gross Weight | `TotalServLine[3]."Gross Weight"` | Specifies the gross weight of items in the service order. |
|  | Volume | `TotalServLine[3]."Unit Volume"` | Specifies the volume of the items in the service order. |
|  | BreakdownTitle2 | label | — |
|  | BreakdownAmt | `BreakdownAmt[3, 1]` | — |
|  | BreakdownAmt | `BreakdownAmt[3, 2]` | — |
|  | BreakdownAmt | `BreakdownAmt[3, 3]` | — |
|  | BreakdownAmt | `BreakdownAmt[3, 4]` | — |
|  | No. of VAT Lines | `TempSalesTaxLine3.Count` | Specifies the number of VAT lines on the service order. |
| Customer | Balance ($) | `Cust."Balance (LCY)"` | Specifies the customer's balance. |
|  | Credit Limit ($) | `Cust."Credit Limit (LCY)"` | Specifies the customer's credit limit, in dollars. |
|  | Expended % of Credit Limit ($) | `CreditLimitLCYExpendedPct` | Specifies the Expended Percentage of Credit Limit ($). |

## Events published

- `OnAfterCalculateSalesTax(var Handled: Boolean; var ServiceHeader: Record "Service Header"; var ServiceLine: Record "Service Line"; var i: Integer; var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; var TempSalesTaxAmountLine2: Record "Sales Tax Amount Line" temporary; var TempSalesTaxAmountLine3: Record "Sales Tax Amount Line" temporary; var SalesTaxAmountLine: Record "Sales Tax Amount Line")` (integration)
- `OnAfterCalculateSalesTaxValidate(var i: Integer)` (integration)

## Procedures

- `VATLinesDrillDown(var VATLinesToDrillDown: Record "Sales Tax Amount Line"; ThisTabAllowsVATEditing: Boolean)`
- `GetDetailsTotal(): Decimal`
- `GetAdjDetailsTotal(): Decimal`
- `UpdateHeaderServLine()`

Plus 10 local procedures.

## Triggers

OnAfterGetRecord, OnOpenPage, 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: "Service Order Stats.")`, 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.
