---
title: "Page 151 Customer Statistics, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/page/151-customer-statistics/points/
object: https://jonas-paprotka.de/ref/page/151-customer-statistics/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/page/151-customer-statistics/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Page 151 Customer Statistics, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/page/151-customer-statistics/points/

6 procedures and triggers with a step in src/Layers/W1/BaseApp/Sales/Customer/CustomerStatistics.Page.al, in source order, read from the text, not from a run.

## Balance (LCY).OnDrillDown

[Line 39](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L39), trigger.

- [48](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L48) calls [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `DrillDownOnEntries`

## DaysSinceLastSale.OnDrillDown

[Line 72](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L72), trigger.

- [76](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L76) calls `FilterCustLedgEntryToLastSale`

## Balance Due (LCY).OnDrillDown

[Line 103](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L103), trigger.

- [112](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L112) calls [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `DrillDownOnOverdueEntries`

## Placeholder2.OnAfterGetRecord

[Line 845](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L845), trigger.

- [851](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L851) calls [Codeunit 358 DateFilter-Calc](https://jonas-paprotka.de/ref/codeunit/358-datefilter-calc/) `CreateAccountingPeriodFilter`
- [852](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L852) calls [Codeunit 358 DateFilter-Calc](https://jonas-paprotka.de/ref/codeunit/358-datefilter-calc/) `CreateFiscalYearFilter`
- [853](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L853) calls [Codeunit 358 DateFilter-Calc](https://jonas-paprotka.de/ref/codeunit/358-datefilter-calc/) `CreateFiscalYearFilter`
- [856](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L856) calls `SetDateFilter`
- [868](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L868) calls [Codeunit 5836 Cost Calculation Management](https://jonas-paprotka.de/ref/codeunit/5836-cost-calculation-management/) `CalcCustActualCostLCY`
- [868](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L868) calls [Codeunit 5836 Cost Calculation Management](https://jonas-paprotka.de/ref/codeunit/5836-cost-calculation-management/) `NonInvtblCostAmt`
- [890](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L890) calls `CalcNumberOfSalesInvoices`
- [891](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L891) calls `CalcNumberOfDistinctItemsSold`

## SetDateFilter

[Line 930](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L930), local.

- [934](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L934) raises `OnAfterSetDateFilter`

## CalcDaysSinceLastSale

[Line 937](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L937), local.

- [941](https://jonas-paprotka.de/ref/page/151-customer-statistics/source/#L941) calls `FilterCustLedgEntryToLastSale`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
