{"title":"Report 5872 BOM Cost Share Distribution, extension points 29","url":"https://jonas-paprotka.de/ref/report/5872-bom-cost-share-distribution/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":"report","id":5872,"name":"BOM Cost Share Distribution","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/5872-bom-cost-share-distribution/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/5872-bom-cost-share-distribution/source/","path":"src/Layers/W1/BaseApp/Inventory/Reports/BOMCostShareDistribution.Report.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:5836":{"name":"Cost Calculation Management","url":"https://jonas-paprotka.de/ref/codeunit/5836-cost-calculation-management/"},"table:5870":{"name":"BOM Buffer","url":"https://jonas-paprotka.de/ref/table/5870-bom-buffer/"},"codeunit:5870":{"name":"Calculate BOM Tree","url":"https://jonas-paprotka.de/ref/codeunit/5870-calculate-bom-tree/"}},"procs":[{"name":"TotalCost.OnAfterGetRecord","line":101,"kind":"trigger","steps":[[103,"call","FindNextRecord",2],[107,"ext","codeunit",5836,"CanIncNonInvCostIntoProductionItem",0]]},{"name":"TotalCost.OnAfterGetRecord","line":126,"kind":"trigger","steps":[[128,"call","GenerateAvailTrend",0]]},{"name":"TotalCost.OnPreDataItem","line":132,"kind":"trigger","steps":[[135,"write",5870,"DeleteAll"]]},{"name":"GenerateAvailTrend","line":239,"kind":"procedure","access":"local","params":0,"steps":[[248,"event","OnGenerateAvailTrendOnBeforeGenerateTreeForItem",1],[250,"ext","codeunit",5870,"GenerateTreeForOneItem",4],[254,"call","KeepOnlyMfgOvhdCost",0],[255,"call","TransferCostToMaterial",0],[262,"ext","table",5870,"RoundCosts",1],[263,"ext","table",5870,"AddMfgOvhdCost",2],[267,"ext","table",5870,"CalcDirectCost",0],[267,"ext","table",5870,"CalcIndirectCost",0],[268,"ext","table",5870,"RoundCosts",1],[269,"ext","table",5870,"AddMaterialCost",2],[272,"call","DeleteThisLine",0],[273,"write",5870,"Delete"],[276,"ext","table",5870,"CalcIndirectCost",0],[277,"ext","table",5870,"CalcUnitCost",0],[278,"write",5870,"Modify"],[281,"call","MergeLinesWithSameTypeAndNo",0]]},{"name":"DeleteThisLine","line":306,"kind":"procedure","access":"local","params":0,"steps":[[315,"ext","codeunit",5836,"CanIncNonInvCostIntoProductionItem",0]]},{"name":"MergeLinesWithSameTypeAndNo","line":322,"kind":"procedure","access":"local","params":0,"steps":[[333,"ext","table",5870,"AddMaterialCost",2],[334,"ext","table",5870,"AddNonInvMaterialCost",2],[335,"ext","table",5870,"AddCapacityCost",2],[336,"ext","table",5870,"AddSubcontrdCost",2],[337,"ext","table",5870,"AddCapOvhdCost",2],[338,"ext","table",5870,"AddMfgOvhdCost",2],[339,"ext","table",5870,"AddScrapCost",2],[340,"write",5870,"Delete"],[343,"ext","table",5870,"CalcDirectCost",0],[344,"ext","table",5870,"CalcIndirectCost",0],[345,"ext","table",5870,"CalcUnitCost",0],[346,"write",5870,"Modify"]]}]}