Codeunit 574 Run Acc. Sched. CashFlow Stmt., source in 29
Source29
src/Layers/W1/BaseApp/Finance/FinancialReports/RunAccSchedCashFlowStmt.Codeunit.al32 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace Microsoft.Finance.FinancialReports;
using Microsoft.Finance.GeneralLedger.Account;
using Microsoft.Finance.GeneralLedger.Setup;
/// <summary>
/// Executes the cash flow statement financial report based on general ledger setup configuration.
/// Provides standardized access to the system-configured cash flow statement report template.
/// </summary>
/// <remarks>
/// Retrieves the cash flow statement financial report from general ledger setup and executes it
/// using the G/L Account Category Management functionality. Ensures consistent cash flow statement
/// reporting across the application with centralized template management.
/// </remarks>
codeunit 574 "Run Acc. Sched. CashFlow Stmt."
{
trigger OnRun()
var
GeneralLedgerSetup: Record "General Ledger Setup";
GLAccountCategoryMgt: Codeunit "G/L Account Category Mgt.";
begin
GLAccountCategoryMgt.GetGLSetup(GeneralLedgerSetup);
GLAccountCategoryMgt.RunAccountScheduleReport(GeneralLedgerSetup."Fin. Rep. for Cash Flow Stmt");
end;
}