Page 100 Accounting Periods, source in 29
Source29
src/Layers/W1/BaseApp/Foundation/Period/AccountingPeriods.Page.al181 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.Foundation.Period;
using Microsoft.Finance.GeneralLedger.Reports;
using Microsoft.Inventory.Setup;
page 100 "Accounting Periods"
{
AdditionalSearchTerms = 'fiscal year,fiscal period';
ApplicationArea = Basic, Suite;
Caption = 'Accounting Periods';
PageType = List;
RefreshOnActivate = true;
SourceTable = "Accounting Period";
UsageCategory = Administration;
AboutTitle = 'About Accounting Periods';
AboutText = 'Accounting periods, also known as reporting periods, are periods of time for which your organisation reports financial performance by generating, for example, an income statement or balance sheet. Typically, accounting periods refer to the company''s fiscal year, which can contain several accounting periods, such as months or quarters.';
layout
{
area(content)
{
repeater(Control1)
{
ShowCaption = false;
field("Starting Date"; Rec."Starting Date")
{
ApplicationArea = Basic, Suite;
}
field(Name; Rec.Name)
{
ApplicationArea = Basic, Suite;
}
field("New Fiscal Year"; Rec."New Fiscal Year")
{
ApplicationArea = Basic, Suite;
}
field(Closed; Rec.Closed)
{
ApplicationArea = Basic, Suite;
}
field("Date Locked"; Rec."Date Locked")
{
ApplicationArea = Basic, Suite;
}
#pragma warning disable AA0100
field("InvtPeriod.IsInvtPeriodClosed(""Starting Date"")"; InvtPeriod.IsInvtPeriodClosed(Rec."Starting Date"))
#pragma warning restore AA0100
{
ApplicationArea = Basic, Suite;
Caption = 'Inventory Period Closed';
Editable = false;
ToolTip = 'Specifies that the inventory period has been closed.';
}
field("Average Cost Period"; Rec."Average Cost Period")
{
ApplicationArea = Suite;
Visible = false;
}
field("Average Cost Calc. Type"; Rec."Average Cost Calc. Type")
{
ApplicationArea = Suite;
Visible = false;
}
}
}
area(factboxes)
{
systempart(Control1900383207; Links)
{
ApplicationArea = RecordLinks;
Visible = false;
}
systempart(Control1905767507; Notes)
{
ApplicationArea = Notes;
Visible = false;
}
}
}
actions
{
area(processing)
{
action("&Inventory Period")
{
ApplicationArea = Basic, Suite;
Caption = '&Inventory Period';
Image = ShowInventoryPeriods;
RunObject = Page "Inventory Periods";
ToolTip = 'Create an inventory period. An inventory period defines a period of time in which you can post changes to the inventory value.';
}
action("&Create Year")
{
ApplicationArea = Basic, Suite;
Caption = '&Create Year';
Ellipsis = true;
Image = CreateYear;
RunObject = Report "Create Fiscal Year";
}
action("C&lose Year")
{
ApplicationArea = Basic, Suite;
Caption = 'C&lose Year';
Image = CloseYear;
RunObject = Codeunit "Fiscal Year-Close";
ToolTip = 'Close the current fiscal year. A confirmation message will display that tells you which year will be closed. You cannot reopen the year after it has been closed.';
}
}
area(reporting)
{
action("Trial Balance by Period")
{
ApplicationArea = Basic, Suite;
Caption = 'Trial Balance by Period';
Image = "Report";
RunObject = Report "Trial Balance by Period";
ToolTip = 'Show the opening balance by general ledger account, the movements in the selected period of month, quarter, or year, and the resulting closing balance.';
}
#if not CLEAN28
action("Trial Balance")
{
ApplicationArea = Suite;
Caption = 'Trial Balance (Obsolete)';
Image = "Report";
//The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true'
//PromotedCategory = "Report";
RunObject = Report "Trial Balance";
ToolTip = 'Show the chart of accounts with balances and net changes. You can use the report at the close of an accounting period or fiscal year.';
ObsoleteState = Pending;
ObsoleteReason = 'This report has been replaced by the report Trial Balance (Excel). This report will be removed in a future release.';
ObsoleteTag = '28.0';
}
#endif
action("Fiscal Year Balance")
{
ApplicationArea = Basic, Suite;
Caption = 'Fiscal Year Balance';
Image = "Report";
//The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true'
//PromotedCategory = "Report";
RunObject = Report "Fiscal Year Balance";
ToolTip = 'View balance sheet movements for a selected period. The report is useful at the close of an accounting period or fiscal year.';
}
}
area(Promoted)
{
group(Category_Process)
{
Caption = 'Process';
actionref("&Inventory Period_Promoted"; "&Inventory Period")
{
}
actionref("&Create Year_Promoted"; "&Create Year")
{
}
actionref("C&lose Year_Promoted"; "C&lose Year")
{
}
}
group(Category_Report)
{
Caption = 'Reports';
actionref("Trial Balance by Period_Promoted"; "Trial Balance by Period")
{
}
}
}
}
var
InvtPeriod: Record "Inventory Period";
}