{"title":"Codeunit 6215 Sustainability Calculation, procedures","url":"https://jonas-paprotka.de/ref/codeunit/6215-sustainability-calculation/procedures/","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":"codeunit","id":6215,"name":"Sustainability Calculation","app":"Sustainability","versions":"24-29","url":"https://jonas-paprotka.de/ref/codeunit/6215-sustainability-calculation/","json":"https://jonas-paprotka.de/ref/codeunit/6215-sustainability-calculation.json"},"aspect":"procedures","total":8,"rows":[{"name":"CalculateScope1Emissions","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":"CalculateScope2Emissions","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":"CalculateScope3Emissions","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":"CalculateWaterOrWaste","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":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"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":"CalculateScope1Emissions","sig":"(var Record Purchase Line, Record Sustain. Account Category, Record Sustain. Account Subcategory)","named":"(var PurchaseLine: Record \"Purchase Line\"; SustainabilityAccountCategory: Record \"Sustain. Account Category\"; SustainabilityAccountSubcategory: 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\"; SustainabilityAccountCategory: Record \"Sustain. Account Category\"; SustainabilityAccountSubcategory: Record \"Sustain. Account Subcategory\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CalculateScope2Emissions","sig":"(var Record Purchase Line, Record Sustain. Account Category, Record Sustain. Account Subcategory)","named":"(var PurchaseLine: Record \"Purchase Line\"; SustainabilityAccountCategory: Record \"Sustain. Account Category\"; SustainabilitySubCategory: 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\"; SustainabilityAccountCategory: Record \"Sustain. Account Category\"; SustainabilitySubCategory: Record \"Sustain. Account Subcategory\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CalculateScope3Emissions","sig":"(var Record Purchase Line, Record Sustain. Account Category, Record Sustain. Account Subcategory)","named":"(var PurchaseLine: Record \"Purchase Line\"; SustainabilityAccountCategory: 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\"; SustainabilityAccountCategory: Record \"Sustain. Account Category\"; SustainAccountSubcategory: Record \"Sustain. Account Subcategory\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CalculateWaterOrWaste","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}]}]}