{"title":"Report 5848 Cost Shares Breakdown, extension points 29","url":"https://jonas-paprotka.de/ref/report/5848-cost-shares-breakdown/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":5848,"name":"Cost Shares Breakdown","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/5848-cost-shares-breakdown/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/5848-cost-shares-breakdown/source/","path":"src/Layers/W1/BaseApp/Manufacturing/Reports/CostSharesBreakdown.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":{"table:27":{"name":"Item","url":"https://jonas-paprotka.de/ref/table/27-item/"},"table:5848":{"name":"Cost Share Buffer","url":"https://jonas-paprotka.de/ref/table/5848-cost-share-buffer/"},"table:339":{"name":"Item Application Entry","url":"https://jonas-paprotka.de/ref/table/339-item-application-entry/"},"codeunit:5896":{"name":"Calc. Inventory Adjmt. - Order","url":"https://jonas-paprotka.de/ref/codeunit/5896-calc-inventory-adjmt-order/"}},"procs":[{"name":"Item Ledger Entry.OnAfterGetRecord","line":33,"kind":"trigger","steps":[[35,"call","CalcRemainingQty",1]]},{"name":"Capacity Ledger Entry.OnAfterGetRecord","line":68,"kind":"trigger","steps":[[74,"write",27,"Insert"],[80,"call","InsertCapLedgEntryCostShare",1]]},{"name":"SrvTrPrintInvtCostShareBufFtr5.OnAfterGetRecord","line":292,"kind":"trigger","steps":[[321,"write",27,"Insert"]]},{"name":"OnPreReport","line":494,"kind":"trigger","steps":[[512,"write",5848,"DeleteAll"]]},{"name":"CalcRemainingQty","line":540,"kind":"procedure","access":"local","params":1,"steps":[[547,"event","OnCalcRemainingQtyOnAfterSetRemainingQty",0],[552,"ext","table",339,"AppliedFromEntryExists",1],[553,"call","ForwardToAppliedOutbndEntry",1],[561,"call","InsertItemLedgEntryCostShare",1]]},{"name":"ForwardToAppliedOutbndEntry","line":564,"kind":"procedure","access":"local","params":1,"steps":[[568,"ext","table",339,"AppliedOutbndEntryExists",3],[569,"call","ForwardItemLedgEntryCostShare",3]]},{"name":"ForwardToAppliedInbndEntry","line":575,"kind":"procedure","access":"local","params":1,"steps":[[579,"ext","table",339,"AppliedInbndEntryExists",2],[580,"call","ForwardItemLedgEntryCostShare",3]]},{"name":"ForwardToInbndTranEntry","line":583,"kind":"procedure","access":"local","params":1,"steps":[[587,"ext","table",339,"AppliedInbndTransEntryExists",2],[588,"call","ForwardItemLedgEntryCostShare",3]]},{"name":"ForwardItemLedgEntryCostShare","line":594,"kind":"procedure","access":"local","params":3,"steps":[[610,"call","InsertItemLedgEntryCostShare",1],[620,"call","InsertItemLedgEntryCostShare",1],[625,"event","OnForwardItemLedgEntryCostShareOnBeforeCheckCostShareQtyCondition",1],[636,"call","UpdateCosts",4],[639,"write",5848,"Modify"],[641,"call","ForwardToAppliedOutbndEntry",1],[643,"call","ForwardToAppliedInbndEntry",1],[651,"call","UpdateCosts",4],[653,"write",5848,"Modify"],[661,"call","ForwardToInbndTranEntry",1],[668,"call","UpdateCosts",4],[671,"write",5848,"Modify"]]},{"name":"InsertItemLedgEntryCostShare","line":705,"kind":"procedure","access":"local","params":1,"steps":[[717,"event","OnInsertItemLedgEntryCostShareOnAfterSetQuantity",0],[738,"call","GetValueEntryCostAmts",2],[740,"call","IsInCostingPeriod",1],[753,"call","UpdateCostShareBufFromInvAdjmtEntryOrder",2],[781,"write",5848,"Insert"]]},{"name":"UpdateCostShareBufFromInvAdjmtEntryOrder","line":784,"kind":"procedure","access":"local","params":2,"steps":[[794,"ext","codeunit",5896,"CalcOutputQty",2],[795,"ext","codeunit",5896,"CalcActualUsageCosts",3],[802,"call","ApplyShareOfCostToCostShareBuffer",5]]},{"name":"ApplyShareOfCostToCostShareBuffer","line":805,"kind":"procedure","access":"local","params":5,"steps":[[810,"event","OnUpdateCostShareBufFromInvAdjmtEntryOrderOnBeforeApplyShareOfCost",0]]},{"name":"InsertCapLedgEntryCostShare","line":823,"kind":"procedure","access":"local","params":1,"steps":[[848,"call","GetValueEntryCostAmts",2],[850,"call","IsInCostingPeriod",1],[883,"write",5848,"Insert"]]}]}