{"title":"Codeunit 6218 Sustainability Calc. Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/6218-sustainability-calc-mgt/","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","changedSince":"2026-09-22","source":{"feed":"https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json","package":"Microsoft.Sustainability.symbols.b3780cd9-f8f8-4a83-a4d5-0c2ad87b28af","build":"29.0.54011.55644","builds":{"24":"24.5.23489.36097","25":"25.5.30849.36072","26":"26.5.38752.40541","27":"27.5.46862.47359","28":"28.5.54151.54365","29":"29.0.54011.55644"},"code":{"29":{"url":"https://jonas-paprotka.de/ref/codeunit/6218-sustainability-calc-mgt/source/","repo":"https://github.com/microsoft/BCApps","branch":"releases/29.x","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","path":"src/Apps/W1/Sustainability/app/src/Calculation/SustainabilityCalcMgt.Codeunit.al","license":"MIT"}},"note":"Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."},"object":{"type":"codeunit","id":6218,"name":"Sustainability Calc. Mgt.","app":"Sustainability","appByVersion":[{"app":"Sustainability","from":24}],"nameByVersion":[{"name":"Sustainability Calc. Mgt.","from":24}],"namespace":"Microsoft.Sustainability.Calculation","versions":"24-29","majors":[24,25,26,27,28,29],"countries":["W1","DE","US"],"minors":{"W1":"24.0-29.0","DE":"24.0-29.0","US":"24.0-29.0"},"minorsUrl":"https://jonas-paprotka.de/ref/codeunit/6218-sustainability-calc-mgt/editions.json","extends":null,"extendsUrl":null,"sourceTable":null,"properties":null,"extendedBy":[],"implementedBy":[],"sourceFile":"src/Calculation/SustainabilityCalcMgt.Codeunit.al","obsolete":null,"obsoleteSeenFrom":null,"byVersion":{"24":{"app":"Sustainability","name":"Sustainability Calc. Mgt.","ns":"Microsoft.Sustainability.Calculation","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":7,"values":0},"stub":false},"25":{"app":"Sustainability","name":"Sustainability Calc. Mgt.","ns":"Microsoft.Sustainability.Calculation","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":7,"values":0},"stub":false},"26":{"app":"Sustainability","name":"Sustainability Calc. Mgt.","ns":"Microsoft.Sustainability.Calculation","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":7,"values":0},"stub":false},"27":{"app":"Sustainability","name":"Sustainability Calc. Mgt.","ns":"Microsoft.Sustainability.Calculation","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":7,"values":0},"stub":false},"28":{"app":"Sustainability","name":"Sustainability Calc. Mgt.","ns":"Microsoft.Sustainability.Calculation","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":11,"values":0},"stub":false},"29":{"app":"Sustainability","name":"Sustainability Calc. Mgt.","ns":"Microsoft.Sustainability.Calculation","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":12,"values":0},"stub":false}},"fields":[],"keys":[],"procedures":[{"name":"CalculationEmissions","sig":"(var Record Sustainability Jnl. Line)","named":"(var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CalculationEmissions","sig":"(var Record Sustainability Jnl. Line, Record Sustain. Account Category, Record Sustain. Account Subcategory)","named":"(var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; SustainAccountCategory: Record \"Sustain. Account Category\"; SustainAccountSubcategory: Record \"Sustain. Account Subcategory\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; SustainAccountCategory: Record \"Sustain. Account Category\"; SustainAccountSubcategory: Record \"Sustain. Account Subcategory\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"GetCollectableGLAmount","sig":"(Record Sustain. Account Category, Date, Date)","named":"(SustainAccountCategory: Record \"Sustain. Account Category\"; FromDate: Date; ToDate: Date)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(SustainAccountCategory: Record \"Sustain. Account Category\"; FromDate: Date; ToDate: Date)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CollectGeneralLedgerAmount","sig":"(var Record Sustainability Jnl. Line)","named":"(var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"FilterGLEntry","sig":"(Record Sustain. Account Category, Date, Date, var Record G/L Entry)","named":"(SustainAccountCategory: Record \"Sustain. Account Category\"; FromDate: Date; ToDate: Date; var GLEntry: Record \"G/L Entry\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(SustainAccountCategory: Record \"Sustain. Account Category\"; FromDate: Date; ToDate: Date; var GLEntry: Record \"G/L Entry\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CalculationEmissions","sig":"(var Record Purchase Line)","named":"(var PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(var PurchaseLine: Record \"Purchase Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CalculationEmissions","sig":"(var Record Purchase Line, Record Sustain. Account Category, Record Sustain. Account Subcategory)","named":"(var PurchaseLine: Record \"Purchase Line\"; SustainAccountCategory: Record \"Sustain. Account Category\"; SustainAccountSubcategory: Record \"Sustain. Account Subcategory\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(var PurchaseLine: Record \"Purchase Line\"; SustainAccountCategory: Record \"Sustain. Account Category\"; SustainAccountSubcategory: Record \"Sustain. Account Subcategory\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"GetFormulaInputEditability","sig":"(Record Sustainability Jnl. Line, var Boolean, var Boolean, var Boolean, var Boolean, var Boolean)","named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; var FuelElectricityEditable: Boolean; var DistanceEditable: Boolean; var CustomAmountEditable: Boolean; var InstallationMultiplierEditable: Boolean; var TimeFactorEditable: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; var FuelElectricityEditable: Boolean; var DistanceEditable: Boolean; var CustomAmountEditable: Boolean; var InstallationMultiplierEditable: Boolean; var TimeFactorEditable: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"GetFormulaInputEditability","sig":"(Record Purchase Line, var Boolean, var Boolean, var Boolean, var Boolean, var Boolean)","named":"(PurchaseLine: Record \"Purchase Line\"; var FuelElectricityEditable: Boolean; var DistanceEditable: Boolean; var CustomAmountEditable: Boolean; var InstallationMultiplierEditable: Boolean; var TimeFactorEditable: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(PurchaseLine: Record \"Purchase Line\"; var FuelElectricityEditable: Boolean; var DistanceEditable: Boolean; var CustomAmountEditable: Boolean; var InstallationMultiplierEditable: Boolean; var TimeFactorEditable: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"SetCollectingJournalLine","sig":"(Record Sustainability Jnl. Line)","named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"29","first":29,"last":29,"obsoleteSince":null,"spans":[{"from":29,"to":29,"named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]}],"events":[{"name":"OnAfterFilterGLEntry","sig":"(Record Sustain. Account Category, Date, Date, var Record G/L Entry)","named":"(SustainAccountCategory: Record \"Sustain. Account Category\"; FromDate: Date; ToDate: Date; var GLEntry: Record \"G/L Entry\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(SustainAccountCategory: Record \"Sustain. Account Category\"; FromDate: Date; ToDate: Date; var GLEntry: Record \"G/L Entry\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeCalculationEmissions","sig":"(var Boolean, var Record Sustainability Jnl. Line)","named":"(var IsHandled: Boolean; var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(var IsHandled: Boolean; var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]}],"values":[],"controls":[],"actions":[]}}