{"title":"Report 6216 Sust. Prod. BOM Calculate CO2e, extension points 29","url":"https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/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":6216,"name":"Sust. Prod. BOM Calculate CO2e","app":"Sustainability","url":"https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/","path":"src/Apps/W1/Sustainability/app/src/Manufacturing/SustProdBOMCalculateCO2e.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:99000756":{"name":"VersionManagement","url":"https://jonas-paprotka.de/ref/codeunit/99000756-versionmanagement/"},"table:99000772":{"name":"Production BOM Line","url":"https://jonas-paprotka.de/ref/table/99000772-production-bom-line/"}},"procs":[{"name":"Production BOM Header.OnAfterGetRecord","line":20,"kind":"trigger","steps":[[28,"call","OpenDialog",2],[31,"call","UpdateCO2ePerUnit",1],[32,"call","UpdateDialog",2],[34,"call","CommitRecord",1],[37,"call","CloseDialog",0],[40,"call","ShowCompletionMsg",2]]},{"name":"UpdateCO2ePerUnit","line":96,"kind":"procedure","access":"local","params":1,"steps":[[103,"ext","codeunit",99000756,"GetBOMVersion",3],[112,"validate",99000772,"CO2e per Unit"],[113,"validate",99000772,"CO2e Last Date Modified"],[115,"write",99000772,"Modify"],[117,"write",99000772,"Modify",1]]}]}