Codeunit 6243 Sust. Entry Reverse Mgt.

Sustainability, Microsoft.Sustainability.Ledger

Source AL, 177 lines

src/Apps/W1/Sustainability/app/src/Ledger/SustEntryReverseMgt.Codeunit.allines 8 to 23 of 177, Copyright (c) Microsoft Corporation. MIT

codeunit 6243 "Sust. Entry Reverse Mgt."{    Permissions =        tabledata "Sustainability Ledger Entry" = rim,        tabledata "Sust. G/L - Sust. Ledger Rel." = rd;    var        AlreadyReversedErr: Label 'Entry No. %1 has already been reversed.', Comment = '%1 = Entry No.';        DocumentEntryErr: Label 'Entry No. %1 was posted from a document and cannot be reversed from here. Use a corrective document instead.', Comment = '%1 = Entry No.';        ConfirmReverseQst: Label 'Do you want to reverse the selected sustainability ledger entry?';        ConfirmReverseMultipleQst: Label 'Do you want to reverse %1 sustainability ledger entries?', Comment = '%1 = Count';        SustainabilityTelemetryFeatureLbl: Label 'Sustainability', Locked = true;        LedgerEntryReversedTelemetryLbl: Label 'Sustainability Ledger Entry Reversed', Locked = true;    procedure ReverseEntry(var SustLedgEntry: Record "Sustainability Ledger Entry")    var

All 177 lines

Events 2 in 29

[IntegrationEvent] OnBeforeInsertReversalSustainabilityLedgerEntry(var SustainabilityLedgerEntry: Record "Sustainability Ledger Entry"; OriginalSustainabilityLedgerEntry: Record "Sustainability Ledger Entry")new in 29
[IntegrationEvent] OnAfterReverseEntry(OriginalSustainabilityLedgerEntry: Record "Sustainability Ledger Entry"; ReversalSustainabilityLedgerEntry: Record "Sustainability Ledger Entry")new in 29

Public procedures 3 in 29

ReverseEntry(var SustLedgEntry: Record "Sustainability Ledger Entry")new in 29
ReverseEntries(var SustLedgEntry: Record "Sustainability Ledger Entry"): Integernew in 29
ReverseEntriesForGLEntry(GLEntryNo: Integer)new in 29