{"title":"Table 5310 Item Statistics Cache, extension points 29","url":"https://jonas-paprotka.de/ref/table/5310-item-statistics-cache/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":"table","id":5310,"name":"Item Statistics Cache","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/5310-item-statistics-cache/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/5310-item-statistics-cache/source/","path":"src/Layers/W1/BaseApp/Inventory/Analysis/ItemStatisticsCache.Table.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":{"table:5310":{"name":"Item Statistics Cache","url":"https://jonas-paprotka.de/ref/table/5310-item-statistics-cache/"},"codeunit:5833":{"name":"Item Statistics","url":"https://jonas-paprotka.de/ref/codeunit/5833-item-statistics/"}},"procs":[{"name":"InitAndInsert","line":153,"kind":"procedure","params":2,"steps":[[158,"write",5310,"Insert"]]},{"name":"UpdateIfNeeded","line":164,"kind":"procedure","params":4,"steps":[[175,"call","UpdateForItemLedgerEntry",2],[176,"call","UpdateForValueEntry",3],[179,"call","IsUpdateNeededItemLedgerEntry",0],[180,"call","UpdateForItemLedgerEntry",2],[183,"call","IsUpdateNeededValueEntry",0],[184,"call","UpdateForValueEntry",3],[191,"write",5310,"Modify"]]},{"name":"UpdateForItemLedgerEntry","line":225,"kind":"procedure","access":"local","params":2,"steps":[[229,"ext","codeunit",5833,"CalculateProductReturnRate",2],[230,"ext","codeunit",5833,"CalculateProductReturnRate",2],[231,"ext","codeunit",5833,"CalculateProductReturnRate",2],[232,"ext","codeunit",5833,"CalculateProductReturnRate",2]]},{"name":"UpdateForValueEntry","line":235,"kind":"procedure","access":"local","params":3,"steps":[[239,"ext","codeunit",5833,"CalculateCurrentInventoryValue",1],[240,"ext","codeunit",5833,"CalculateExpiredStockValue",1],[242,"ext","codeunit",5833,"CalculateSalesGrowthRate",3],[243,"ext","codeunit",5833,"CalculateSalesGrowthRate",3],[244,"ext","codeunit",5833,"CalculateSalesGrowthRate",3],[246,"ext","codeunit",5833,"CalculateNetSales",2],[247,"ext","codeunit",5833,"CalculateNetSales",2],[248,"ext","codeunit",5833,"CalculateNetSales",2],[249,"ext","codeunit",5833,"CalculateNetSales",2],[251,"ext","codeunit",5833,"CalculateGrossMarginPercentage",2],[252,"ext","codeunit",5833,"CalculateGrossMarginPercentage",2],[253,"ext","codeunit",5833,"CalculateGrossMarginPercentage",2],[254,"ext","codeunit",5833,"CalculateGrossMarginPercentage",2]]}]}