---
title: "Codeunit 6307 PBI Aged Inventory Calc., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/points/
object: https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/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/"
---

# Codeunit 6307 PBI Aged Inventory Calc., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/points/

4 procedures and triggers with a step in src/Layers/W1/BaseApp/Integration/PowerBI/ReportingData/PBIAgedInventoryCalc.Codeunit.al, in source order, read from the text, not from a run.

## GetValues

[Line 23](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L23).

- [33](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L33) calls [Codeunit 1315 Chart Management](https://jonas-paprotka.de/ref/codeunit/1315-chart-management/) `SetPeriodLength`
- [34](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L34) calls `CalcPeriodStartDates`
- [34](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L34) calls [Codeunit 1317 Aged Inventory Chart Mgt.](https://jonas-paprotka.de/ref/codeunit/1317-aged-inventory-chart-mgt/) `GetPeriodLengthInDays`
- [35](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L35) calls [Codeunit 1317 Aged Inventory Chart Mgt.](https://jonas-paprotka.de/ref/codeunit/1317-aged-inventory-chart-mgt/) `CalcInventoryValuePerAge`
- [36](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L36) calls `InsertToBuffer`

## CalcPeriodStartDates

[Line 40](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L40), local.

- [45](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L45) calls [Codeunit 40 LogInManagement](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/) `GetDefaultWorkDate`

## InsertToBuffer

[Line 51](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L51), local.

- [62](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L62) calls `AddChartColumns`
- [64](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L64) writes [Table 6305 Power BI Chart Buffer](https://jonas-paprotka.de/ref/table/6305-power-bi-chart-buffer/) Insert

## AddChartColumns

[Line 68](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L68), local.

- [80](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L80) calls [Codeunit 1317 Aged Inventory Chart Mgt.](https://jonas-paprotka.de/ref/codeunit/1317-aged-inventory-chart-mgt/) `GetPeriodLengthInDays`
- [83](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L83) calls [Codeunit 1317 Aged Inventory Chart Mgt.](https://jonas-paprotka.de/ref/codeunit/1317-aged-inventory-chart-mgt/) `FromToYearsTxt`
- [84](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L84) calls [Codeunit 1317 Aged Inventory Chart Mgt.](https://jonas-paprotka.de/ref/codeunit/1317-aged-inventory-chart-mgt/) `OverYearsTxt`
- [86](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L86) calls [Codeunit 1317 Aged Inventory Chart Mgt.](https://jonas-paprotka.de/ref/codeunit/1317-aged-inventory-chart-mgt/) `FromToDaysTxt`
- [87](https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/#L87) calls [Codeunit 1317 Aged Inventory Chart Mgt.](https://jonas-paprotka.de/ref/codeunit/1317-aged-inventory-chart-mgt/) `OverDaysTxt`

## Source

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

JOP-AL, 2026-11-20.
