---
title: "Codeunit 6218 Sustainability Calc. Mgt."
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6218-sustainability-calc-mgt/
type: codeunit
id: 6218
name: "Sustainability Calc. Mgt."
app: "Sustainability"
namespace: Microsoft.Sustainability.Calculation
versions: "24-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/6218-sustainability-calc-mgt/source/"
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 6218 Sustainability Calc. Mgt.

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6218-sustainability-calc-mgt/

| | |
| --- | --- |
| App | Sustainability |
| Namespace | Microsoft.Sustainability.Calculation |
| Versions | 24-29 |
| Minors | W1 24.0-29.0; DE 24.0-29.0; US 24.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/6218-sustainability-calc-mgt/editions.json) |
| Source file | src/Calculation/SustainabilityCalcMgt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CalculationEmissions | (var SustainabilityJnlLine: Record "Sustainability Jnl. Line") | - | internal | 24-29 | - | - |
| CalculationEmissions | (var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | - | internal | 24-29 | - | - |
| GetCollectableGLAmount | (SustainAccountCategory: Record "Sustain. Account Category"; FromDate: Date; ToDate: Date) | Decimal | public | 24-29 | - | - |
| CollectGeneralLedgerAmount | (var SustainabilityJnlLine: Record "Sustainability Jnl. Line") | - | internal | 24-29 | - | - |
| FilterGLEntry | (SustainAccountCategory: Record "Sustain. Account Category"; FromDate: Date; ToDate: Date; var GLEntry: Record "G/L Entry") | - | internal | 24-29 | - | - |
| CalculationEmissions | (var PurchaseLine: Record "Purchase Line") | - | internal | 28-29 | - | - |
| CalculationEmissions | (var PurchaseLine: Record "Purchase Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | - | internal | 28-29 | - | - |
| GetFormulaInputEditability | (SustainabilityJnlLine: Record "Sustainability Jnl. Line"; var FuelElectricityEditable: Boolean; var DistanceEditable: Boolean; var CustomAmountEditable: Boolean; var InstallationMultiplierEditable: Boolean; var TimeFactorEditable: Boolean) | - | internal | 28-29 | - | - |
| GetFormulaInputEditability | (PurchaseLine: Record "Purchase Line"; var FuelElectricityEditable: Boolean; var DistanceEditable: Boolean; var CustomAmountEditable: Boolean; var InstallationMultiplierEditable: Boolean; var TimeFactorEditable: Boolean) | - | internal | 28-29 | - | - |
| SetCollectingJournalLine | (SustainabilityJnlLine: Record "Sustainability Jnl. Line") | - | internal | 29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterFilterGLEntry | (SustainAccountCategory: Record "Sustain. Account Category"; FromDate: Date; ToDate: Date; var GLEntry: Record "G/L Entry") | 24-29 | - | - |
| Integration event | OnBeforeCalculationEmissions | (var IsHandled: Boolean; var SustainabilityJnlLine: Record "Sustainability Jnl. Line") | 24-29 | - | - |

## Source

Symbols: Microsoft.Sustainability.symbols.b3780cd9-f8f8-4a83-a4d5-0c2ad87b28af, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
