Codeunit 6210 Sustainability Account Mgt.

Sustainability, Microsoft.Sustainability.Account

Source AL, 190 lines

src/Apps/W1/Sustainability/app/src/Account/SustainabilityAccountMgt.Codeunit.allines 10 to 25 of 190, Copyright (c) Microsoft Corporation. MIT

codeunit 6210 "Sustainability Account Mgt."{    var        SustainAccIndentQst: Label 'This function updates the indentation of all sustainability accounts in the chart of sustainability accounts. All accounts between a Begin-Total and the matching End-Total are indented one level. The Totaling for each End-total is also updated.\\Do you want to indent the chart of sustainability accounts?';        IndSustainAccountsTxt: Label 'Indenting the Chart of Sustainability Accounts #1##########', Comment = '%1 - Sustainability Account number';        EndTotalMissingErr: Label 'End-Total %1 is missing a matching Begin-Total.', Comment = '%1 - Sustainability Account number';        MaxIndentationLevelReachedErr: Label 'You can only indent %1 levels for accounts of the type Begin-Total.', Comment = '%1 = A number bigger than 1';        LedgerEntryExistsAndChangeBlockedErr: Label 'You cannot change this value because there are one or more ledger entries associated with %1. And the field %2 is set to false in the setup table: %3.', Comment = '%1 = Account No. or Category Code, %2 = Field Caption, %3 = Setup Table Name';        ChangeCriticalSetupEvenThereAreTransactionQst: Label 'You are changing %1 field of %2 %3, which is already used in associated transactions.\\We recommend to create new %2 instead of modifying current one.\\Do you want to change the value?', Comment = '%1 - Field Caption, %2 - Table Caption  %3 - Account No.';        ChangeAndUpdateJournalLinesQst: Label 'There are journal lines associated with %1. Do you want to continue and update them?', Comment = '%1 = Account No. or Category Code';    procedure IndentChartOfSustainabilityAccounts(HideConfirmDialog: Boolean)    var        SustainAccount: Record "Sustainability Account";        ConfirmManagement: Codeunit "Confirm Management";        Window: Dialog;

All 190 lines

Public procedures 6 in 29

IndentChartOfSustainabilityAccounts(HideConfirmDialog: Boolean)new in 24
CheckIfChangeAllowedForAccount(AccountNo: Code[20]; FieldCaption: Text)new in 24
CheckIfChangeAllowedForCategory(CategoryCode: Code[20]; FieldCaption: Text)new in 24
CheckIfChangeAllowedForSubcategory(SubcategoryCode: Code[20]; FieldCaption: Text)new in 24
ReCalculateJournalLinesForCategory(SustainAccountCategory: Record "Sustain. Account Category")new in 24
ReCalculateJournalLinesForSubcategory(SustainAccountSubcategory: Record "Sustain. Account Subcategory")new in 24

All 8 procedures in 24-29