Codeunit 6218 "Sustainability Calc. Mgt."
Sustainability · Microsoft.Sustainability.Calculation
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 6 connected objects and pages
Sustainability · Microsoft.Sustainability.Calculation · BC29-30 · source at 4e6a307c · facts from BC29
Events published
OnAfterFilterGLEntry(SustainAccountCategory: Record "Sustain. Account Category"; FromDate: Date; ToDate: Date; var GLEntry: Record "G/L Entry")(integration)OnBeforeCalculationEmissions(var IsHandled: Boolean; var SustainabilityJnlLine: Record "Sustainability Jnl. Line")(integration)
Procedures
CalculationEmissions(var SustainabilityJnlLine: Record "Sustainability Jnl. Line")(internal)CalculationEmissions(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory")(internal)CalculationEmissions(var PurchaseLine: Record "Purchase Line")(internal)CalculationEmissions(var PurchaseLine: Record "Purchase Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory")(internal)GetFormulaInputEditability(SustainabilityJnlLine: Record "Sustainability Jnl. Line"; var FuelElectricityEditable: Boolean; var DistanceEditable: Boolean; var CustomAmountEditable: Boolean; var InstallationMultiplierEditable: Boolean; var TimeFactorEditable: Boolean)(internal)GetFormulaInputEditability(PurchaseLine: Record "Purchase Line"; var FuelElectricityEditable: Boolean; var DistanceEditable: Boolean; var CustomAmountEditable: Boolean; var InstallationMultiplierEditable: Boolean; var TimeFactorEditable: Boolean)(internal)GetCollectableGLAmount(SustainAccountCategory: Record "Sustain. Account Category"; FromDate: Date; ToDate: Date): Decimal: Filter general ledger entries by criteria defined in sustainability category and by date and calculate the totalCollectGeneralLedgerAmount(var SustainabilityJnlLine: Record "Sustainability Jnl. Line")(internal)SetCollectingJournalLine(SustainabilityJnlLine: Record "Sustainability Jnl. Line")(internal)FilterGLEntry(SustainAccountCategory: Record "Sustain. Account Category"; FromDate: Date; ToDate: Date; var GLEntry: Record "G/L Entry")(internal)
Plus 6 local procedures.
Called by
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 6210 “Sustainability Account Mgt.” (2 calls:
ReCalculateJournalLinesForCategory → CalculationEmissions,ReCalculateJournalLinesForSubcategory → CalculationEmissions) - Codeunit 6216 “Sustainability Jnl.-Check” (1 call:
TestEmissionCalculationAndAmount → CalculationEmissions) - Codeunit 6225 “Sust. Purchase Subscriber” (1 call:
OnValidateQuantityOnBeforeResetAmounts → CalculationEmissions) - Page 6219 “Sustainability Journal” (1 call:
SetFormulaInputEditability → GetFormulaInputEditability) - Page 6224 “Collect Amount from G/L Entry” (1 call:
SetCollectingJournalLine → SetCollectingJournalLine) - Page extension 6211 “Sust. Purch. Order Subform” (1 call:
SetFormulaInputEditability → GetFormulaInputEditability)
Recent changes
- 2026-09-16 #10541 [Master] - Slice 641375: [Sustainability] Collect Amount from G/L Entries: track collected entries to prevent double counting (main, BC30, feature)
- 2026-08-26 #10631 Integration/main to releases 29.x 31a860b5 (releases/29.x, BC29, feature)
- 2026-08-21 #10183 Bug 646432: [master] [Sustainability] Line does not indicate/enforce which Calculation Foundation is in use; all formula input fields are editable (main, BC30, fix)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Power BI Sustainability app semantic model — possibly related: Sustainability data calculation from GL entries, referenced in semantic model (model-linked)
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Sustainability Calc. Mgt."), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.