Codeunit 6212 Sustainability Post Mgt

Sustainability, Microsoft.Sustainability.Posting

src/Apps/W1/Sustainability/app/src/Posting/SustainabilityPostMgt.Codeunit.al18 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

InsertLedgerEntry line 24

  1. 32callsCodeunit 8703 Feature Telemetry LogUsage
  2. 33callsCodeunit 8703 Feature Telemetry LogUptake
  3. 41callsCopyDataFromAccountCategory
  4. 43callsCopyDateFromAccountSubCategory
  5. 45validatesTable 6216 Sustainability Ledger Entry User ID
  6. 47callsUpdateCarbonFeeEmission
  7. 49raisesOnBeforeInsertSustainabilityLedgerEntry
  8. 52raisesOnInsertLedgerEntryOnBeforeInsertIsHandled
  9. 54writesTable 6216 Sustainability Ledger Entry Insert(true)
  10. 55callsCreateGLEntryRelations

CreateGLEntryRelations line 59, local

  1. 68callsTable 6260 Sust. Jnl. Line G/L Entry SetJournalLineFilter
  2. 74callsTable 6261 Sust. G/L - Sust. Ledger Rel. CreateRelation

InsertValueEntry line 78

  1. 90callsCodeunit 8703 Feature Telemetry LogUsage
  2. 91callsCodeunit 8703 Feature Telemetry LogUptake
  3. 93callsTable 6227 Sustainability Value Entry GetLastEntryNo
  4. 94callsTable 6227 Sustainability Value Entry CopyFromValueEntry
  5. 95callsTable 6227 Sustainability Value Entry CopyFromSustainabilityJnlLine
  6. 107validatesTable 6227 Sustainability Value Entry User ID
  7. 108callsUpdateCarbonFeeEmissionForValueEntry
  8. 116callsCalcExpectedCO2e
  9. 124validatesTable 6227 Sustainability Value Entry CO2e Amount (Actual)
  10. 126writesTable 6227 Sustainability Value Entry Insert(true)
  11. 128callsUpdateCO2ePerUnit

InsertValueEntry line 131

  1. 137callsCodeunit 8703 Feature Telemetry LogUsage
  2. 138callsCodeunit 8703 Feature Telemetry LogUptake
  3. 140callsTable 6227 Sustainability Value Entry GetLastEntryNo
  4. 141callsTable 6227 Sustainability Value Entry CopyFromJobLedgerEntry
  5. 142callsTable 6227 Sustainability Value Entry CopyFromSustainabilityJnlLine
  6. 143validatesTable 6227 Sustainability Value Entry User ID
  7. 146callsUpdateCarbonFeeEmissionForValueEntry
  8. 147writesTable 6227 Sustainability Value Entry Insert(true)
  9. 149callsUpdateCO2ePerUnit

InsertValueEntry line 152

  1. 158callsCodeunit 8703 Feature Telemetry LogUsage
  2. 159callsCodeunit 8703 Feature Telemetry LogUptake
  3. 161callsTable 6227 Sustainability Value Entry GetLastEntryNo
  4. 162callsTable 6227 Sustainability Value Entry CopyFromResourceLedgerEntry
  5. 163callsTable 6227 Sustainability Value Entry CopyFromSustainabilityJnlLine
  6. 164validatesTable 6227 Sustainability Value Entry User ID
  7. 167callsUpdateCarbonFeeEmissionForValueEntry
  8. 168writesTable 6227 Sustainability Value Entry Insert(true)
  9. 170callsUpdateCO2ePerUnit

InsertValueEntry line 173

  1. 179callsCodeunit 8703 Feature Telemetry LogUsage
  2. 180callsCodeunit 8703 Feature Telemetry LogUptake
  3. 182callsTable 6227 Sustainability Value Entry GetLastEntryNo
  4. 183callsTable 6227 Sustainability Value Entry CopyFromFALedgerEntry
  5. 184callsTable 6227 Sustainability Value Entry CopyFromSustainabilityJnlLine
  6. 185validatesTable 6227 Sustainability Value Entry User ID
  7. 188callsUpdateCarbonFeeEmissionForValueEntry
  8. 189writesTable 6227 Sustainability Value Entry Insert(true)
  9. 191callsUpdateCO2ePerUnit

UpdateCO2ePerUnit line 194

  1. 203callsCodeunit 6257 SustCostManagement UpdateCO2ePerUnit

UpdateCarbonFeeEmission line 216

  1. 227callsUpdateCarbonFeeEmissionValues

UpdateCarbonFeeEmissionForValueEntry line 232

  1. 243callsUpdateCarbonFeeEmissionValues
  2. 254callsCalcCO2ePerUnit

UpdateCarbonFeeEmissionValues line 257

  1. 279callsFindEmissionFeeForEmissionType
  2. 285callsFindEmissionFeeForEmissionType
  3. 291callsFindEmissionFeeForEmissionType

GetTotalCO2eAmount line 300

  1. 308callsIsCarbonTrackingSpecificItem
  2. 314callsCodeunit 5801 Show Applied Entries FindAppliedEntries
  3. 316callsGetILEForAssemblyOutputs
  4. 320callsGetCO2eAmountAndQuantity
  5. 328callsCorrectSign
  6. 336callsCalculateForProductionOutput
  7. 337callsCorrectSign
  8. 343callsCorrectSign

GetCO2eAmountAndQuantity line 357

  1. 364callsResolveTransferInCO2e

ResolveTransferInCO2e line 373, local

  1. 389callsCodeunit 5801 Show Applied Entries FindAppliedEntries
  2. 395callsGetCO2eAmountAndQuantity
  3. 410callsGetCO2eAmountAndQuantity

GetTotalCO2eAmountFromValueEntry line 432

  1. 449callsGetCO2eAmountAndQuantity

GetILEForAssemblyOutputs line 472, local

  1. 483callsGetConsumptionEntryType
  2. 487writesTable 32 Item Ledger Entry Insert

CopyDataFromAccountCategory line 543, local

  1. 549validatesTable 6216 Sustainability Ledger Entry Emission Scope
  2. 550validatesTable 6216 Sustainability Ledger Entry CO2
  3. 551validatesTable 6216 Sustainability Ledger Entry CH4
  4. 552validatesTable 6216 Sustainability Ledger Entry N2O
  5. 553validatesTable 6216 Sustainability Ledger Entry Calculation Foundation

CopyDateFromAccountSubCategory line 556, local

  1. 562validatesTable 6216 Sustainability Ledger Entry Emission Factor CO2
  2. 563validatesTable 6216 Sustainability Ledger Entry Emission Factor CH4
  3. 564validatesTable 6216 Sustainability Ledger Entry Emission Factor N2O

CalcExpectedCO2e line 575, local

  1. 596callsCalcExpCO2eToBalance