{"title":"Codeunit 6307 PBI Aged Inventory Calc., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/points/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":6307,"name":"PBI Aged Inventory Calc.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6307-pbi-aged-inventory-calc/source/","path":"src/Layers/W1/BaseApp/Integration/PowerBI/ReportingData/PBIAgedInventoryCalc.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:1315":{"name":"Chart Management","url":"https://jonas-paprotka.de/ref/codeunit/1315-chart-management/"},"codeunit:1317":{"name":"Aged Inventory Chart Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1317-aged-inventory-chart-mgt/"},"codeunit:40":{"name":"LogInManagement","url":"https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/"},"table:6305":{"name":"Power BI Chart Buffer","url":"https://jonas-paprotka.de/ref/table/6305-power-bi-chart-buffer/"}},"procs":[{"name":"GetValues","line":23,"kind":"procedure","params":1,"steps":[[33,"ext","codeunit",1315,"SetPeriodLength",4],[34,"call","CalcPeriodStartDates",2],[34,"ext","codeunit",1317,"GetPeriodLengthInDays",1],[35,"ext","codeunit",1317,"CalcInventoryValuePerAge",2],[36,"call","InsertToBuffer",2]]},{"name":"CalcPeriodStartDates","line":40,"kind":"procedure","access":"local","params":2,"steps":[[45,"ext","codeunit",40,"GetDefaultWorkDate",0]]},{"name":"InsertToBuffer","line":51,"kind":"procedure","access":"local","params":2,"steps":[[62,"call","AddChartColumns",2],[64,"write",6305,"Insert"]]},{"name":"AddChartColumns","line":68,"kind":"procedure","access":"local","params":2,"steps":[[80,"ext","codeunit",1317,"GetPeriodLengthInDays",1],[83,"ext","codeunit",1317,"FromToYearsTxt",0],[84,"ext","codeunit",1317,"OverYearsTxt",0],[86,"ext","codeunit",1317,"FromToDaysTxt",0],[87,"ext","codeunit",1317,"OverDaysTxt",0]]}]}