{"title":"Report 1131 Cost Allocation, extension points 29","url":"https://jonas-paprotka.de/ref/report/1131-cost-allocation/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":1131,"name":"Cost Allocation","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/1131-cost-allocation/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/","path":"src/Layers/W1/BaseApp/CostAccounting/Allocation/CostAllocation.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:1108":{"name":"Cost Accounting Setup","url":"https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/"},"report:1129":{"name":"Cost Allocations","url":"https://jonas-paprotka.de/ref/report/1129-cost-allocations/"},"table:1101":{"name":"Cost Journal Line","url":"https://jonas-paprotka.de/ref/table/1101-cost-journal-line/"},"codeunit:1102":{"name":"CA Jnl.-Post Line","url":"https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/"}},"procs":[{"name":"CostAllocationTarget.OnPostDataItem","line":51,"kind":"trigger","steps":[[54,"call","ShowAllocations",1]]},{"name":"Cost Allocation Target.OnAfterGetRecord","line":153,"kind":"trigger","steps":[[186,"call","WriteJournalLine",8]]},{"name":"Cost Allocation Target.OnPostDataItem","line":190,"kind":"trigger","steps":[[197,"call","WriteJournalLine",8],[202,"write",1108,"Modify"]]},{"name":"Cost Allocation Target.OnAfterGetRecord","line":224,"kind":"trigger","steps":[[228,"call","PostCostJournalLines",0]]},{"name":"Cost Allocation Target.OnPostDataItem","line":240,"kind":"trigger","steps":[[246,"call","PostCostJournalLines",0]]},{"name":"OnInitReport","line":363,"kind":"trigger","steps":[[365,"call","InitializeRequest",5]]},{"name":"ShowAllocations","line":434,"kind":"procedure","access":"local","params":1,"steps":[[452,"ext","report",1129,"InitializeRequest",3]]},{"name":"WriteJournalLine","line":457,"kind":"procedure","access":"local","params":8,"steps":[[489,"event","OnWriteJournalLineOnBeforeInsertTempCostJournalLine",0],[490,"write",1101,"Insert"]]},{"name":"PostCostJournalLines","line":502,"kind":"procedure","access":"local","params":0,"steps":[[520,"ext","codeunit",1102,"RunWithCheck",1],[522,"write",1101,"DeleteAll"]]}]}