Source AL, 208 lines
src/Apps/W1/Sustainability/app/src/Calculation/SustainabilityCalculation.Codeunit.allines 7 to 22 of 208, Copyright (c) Microsoft Corporation. MIT
codeunit 6215 "Sustainability Calculation"{ Access = Internal; internal procedure CalculateScope1Emissions(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") begin case SustainAccountCategory."Calculation Foundation" of Enum::"Calculation Foundation"::"Fuel/Electricity": CalculateFuelOrElectricityEmissions(SustainabilityJnlLine, SustainAccountSubcategory); Enum::"Calculation Foundation"::Distance: CalculateDistanceEmissions(SustainabilityJnlLine, SustainAccountSubcategory); Enum::"Calculation Foundation"::Installations: CalculateInstallationsEmissions(SustainabilityJnlLine, SustainAccountSubcategory) else Error(CalculationNotSupportedErr, SustainAccountCategory."Calculation Foundation", SustainAccountCategory."Emission Scope"); end;
All 208 lines
Procedures 8
| Procedure | Versions |
|---|
| internal CalculateScope1Emissions(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | new in 24 |
| internal CalculateScope2Emissions(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | new in 24 |
| internal CalculateScope3Emissions(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | new in 24 |
| internal CalculateWaterOrWaste(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | new in 26 |
| internal CalculateScope1Emissions(var PurchaseLine: Record "Purchase Line"; SustainabilityAccountCategory: Record "Sustain. Account Category"; SustainabilityAccountSubcategory: Record "Sustain. Account Subcategory") | new in 28 |
| internal CalculateScope2Emissions(var PurchaseLine: Record "Purchase Line"; SustainabilityAccountCategory: Record "Sustain. Account Category"; SustainabilitySubCategory: Record "Sustain. Account Subcategory") | new in 28 |
| internal CalculateScope3Emissions(var PurchaseLine: Record "Purchase Line"; SustainabilityAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | new in 28 |
| internal CalculateWaterOrWaste(var PurchaseLine: Record "Purchase Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | new in 28 |
Changes 4 in 28
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Procedures | | | | | | | | | | 1 | | 4 | |
|---|
| internal CalculateScope1Emissions(var PurchaseLine: Record "Purchase Line"; SustainabilityAccountCategory: Record "Sustain. Account Category"; SustainabilityAccountSubcategory: Record "Sustain. Account Subcategory") | new in 28 |
| added |
| internal CalculateScope2Emissions(var PurchaseLine: Record "Purchase Line"; SustainabilityAccountCategory: Record "Sustain. Account Category"; SustainabilitySubCategory: Record "Sustain. Account Subcategory") | new in 28 |
| added |
| internal CalculateScope3Emissions(var PurchaseLine: Record "Purchase Line"; SustainabilityAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | new in 28 |
| added |
| internal CalculateWaterOrWaste(var PurchaseLine: Record "Purchase Line"; SustainAccountCategory: Record "Sustain. Account Category"; SustainAccountSubcategory: Record "Sustain. Account Subcategory") | new in 28 |
| added |
All 5 changes in 24-29