Codeunit 110 Consolidate Business Units

Base Application, Microsoft.Finance.Consolidation

Source AL, 270 lines

src/Layers/W1/BaseApp/Finance/Consolidation/ConsolidateBusinessUnits.Codeunit.allines 22 to 37 of 270, Copyright (c) Microsoft Corporation. MIT

codeunit 110 "Consolidate Business Units"{    Permissions = tabledata "Job Queue Entry" = rid;    var        EmptyDateRangeErr: Label 'You must specify the starting date and the ending date for the consolidation.';        ClosingDateErr: Label 'The starting date or the ending date is a closing date, and they are not the same.';        YouMustCreateFiscalYearErr: Label 'You must create a new fiscal year for the consolidation company.';        ConsolidationPeriodOutsideFiscalYearErr: Label 'The consolidation period %1 .. %2 is outside the fiscal year %3 .. %4 in the consolidation company. Do you want to continue?', Comment = '%1 - Starting date, %2 - Ending date, %3 - Starting date, %4 - Ending date';        PleaseSpecifyErr: Label '"%1" is mandatory in General Ledger Setup, but it is not specified.', Comment = '%1 - Field name';        PleaseSpecifyNoSeriesErr: Label 'Specify a No. Series in the General Journal Batch %1.', Comment = '%1 - The code of the general journal batch';        BusinessUnitStartingDateLaterErr: Label 'The ending date is earlier than the starting date for the business unit %1.', Comment = '%1 - The code of the business unit';        PleaseSpecifyDocNoErr: Label 'Please specify a document number for the consolidation journal.';        ConfirmConsolidationDatesForBusinessUnitMsg: Label 'The business unit %1 has the date range %2 .. %3 configured. Do you want to consolidate the period %4 .. %5?', Comment = '%1 - Code of the business unit, %2 - starting date, %3 - ending date, %4 - starting date, %5 - ending date';        SelectOneBusinessUnitErr: Label 'Select at least one business unit to consolidate.';        MaxNumberOfDaysInConsolidationErr: Label 'Maximum number of days in consolidation is %1.', Comment = '%1 - The maximum number of days in consolidation';

All 270 lines

Procedures 8

ProcedureVersions
internal StartConsolidation(var ConsolidationProcess: Record "Consolidation Process" temporary; var BusinessUnit: Record "Business Unit" temporary)23 to 23
internal ValidateDatesForConsolidation(StartingDate: Date; EndingDate: Date; AskConfirmation: Boolean)new in 23
internal ValidateConsolidationParameters(var ConsolidationProcess: Record "Consolidation Process" temporary; var BusinessUnit: Record "Business Unit" temporary; AskConfirmation: Boolean)new in 23
internal ValidateJournalForConsolidation(JournalTemplateNameMandatory: Boolean; JournalTemplateName: Code[10]; JournalBatchName: Code[10]; DocumentNo: Code[20])new in 23
internal ValidateAndRunConsolidation(var ConsolidationProcess: Record "Consolidation Process" temporary; var BusinessUnit: Record "Business Unit" temporary): Booleannew in 24
internal GetLastConsolidationEndingDate(BusinessUnit: Record "Business Unit"): Datenew in 24
internal BusinessUnitConsolidationProcessesInDateRange(BusinessUnit: Record "Business Unit"; StartingDate: Date; EndingDate: Date): Booleannew in 24
internal ValidateBusinessUnitsToConsolidate(var BusinessUnit: Record "Business Unit" temporary; AskConfirmation: Boolean)new in 24

Changes 5 in 24

List17181920212223242526272829
Procedures5
internal StartConsolidation(var ConsolidationProcess: Record "Consolidation Process" temporary; var BusinessUnit: Record "Business Unit" temporary)23 to 23
gone
internal ValidateAndRunConsolidation(var ConsolidationProcess: Record "Consolidation Process" temporary; var BusinessUnit: Record "Business Unit" temporary): Booleannew in 24
added
internal GetLastConsolidationEndingDate(BusinessUnit: Record "Business Unit"): Datenew in 24
added
internal BusinessUnitConsolidationProcessesInDateRange(BusinessUnit: Record "Business Unit"; StartingDate: Date; EndingDate: Date): Booleannew in 24
added
internal ValidateBusinessUnitsToConsolidate(var BusinessUnit: Record "Business Unit" temporary; AskConfirmation: Boolean)new in 24
added

All 5 changes in 23-29