---
title: "Page 400 Purchase Invoice Statistics, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/points/
object: https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/page/400-purchase-invoice-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 400 Purchase Invoice Statistics, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/points/

2 procedures and triggers with a step in src/Layers/W1/BaseApp/Purchases/History/PurchaseInvoiceStatistics.Page.al, in source order, read from the text, not from a run.

## Vend..OnAfterGetRecord

[Line 142](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L142), trigger.

- [148](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L148) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Initialize`
- [150](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L150) calls `CalculateTotals`
- [164](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L164) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToLCY`
- [178](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L178) calls [Table 123 Purch. Inv. Line](https://jonas-paprotka.de/ref/table/123-purch-inv-line/) `CalcVATAmountLines`
- [179](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L179) raises `OnOnAfterGetRecordOnBeforeUpdateSubForm`

## CalculateTotals

[Line 211](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L211), local.

- [216](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L216) raises `OnBeforeCalculateTotals`, IsHandled
- [228](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L228) calls [Table 123 Purch. Inv. Line](https://jonas-paprotka.de/ref/table/123-purch-inv-line/) `GetVATPct`
- [239](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L239) calls [Table 123 Purch. Inv. Line](https://jonas-paprotka.de/ref/table/123-purch-inv-line/) `GetVATPct`
- [243](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L243) raises `OnCalculateTotalsOnAfterAddLineTotals`
- [248](https://jonas-paprotka.de/ref/page/400-purchase-invoice-statistics/source/#L248) raises `OnAfterCalculateTotals`

## Source

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

JOP-AL, 2026-11-20.
