Codeunit 360 Accounting Period Mgt.

Base Application, Microsoft.Foundation.Period

Source AL, 349 lines

src/Layers/W1/BaseApp/Foundation/Period/AccountingPeriodMgt.Codeunit.allines 10 to 25 of 349, Copyright (c) Microsoft Corporation. MIT

codeunit 360 "Accounting Period Mgt."{    Permissions = tabledata "Accounting Period" = R;    trigger OnRun()    begin    end;    var        PeriodTxt: Label 'PERIOD', Comment = 'Must be uppercase. Reuse the translation from COD1 for 2009 SP1.';        YearTxt: Label 'YEAR', Comment = 'Must be uppercase. Reuse the translation from COD1 for 2009 SP1.';        NumeralTxt: Label '0123456789', Comment = 'Numerals';        ReservedCharsTxt: Label '-+|. ', Locked = true;        CombineTok: Label '%1%2', Locked = true;        NumeralOutOfRangeErr: Label 'When you specify periods and years, you can use numbers from 1 - 999, such as P-1, P1, Y2 or Y+3.';

All 349 lines

Public procedures 13 in 29

GetPeriodStartingDate(): Date17-29
CheckPostingDateInFiscalYear(PostingDate: Date)17-29
FindFiscalYear(BalanceDate: Date): Date17-29
FindEndOfFiscalYear(BalanceDate: Date): Date17-29
InitStartYearAccountingPeriod(var AccountingPeriod: Record "Accounting Period"; PostingDate: Date)17-29
InitDefaultAccountingPeriod(var AccountingPeriod: Record "Accounting Period"; PostingDate: Date)17-29

All 15 procedures in 17-29

Changes 4 in 27

List17181920212223242526272829
Procedures124
AccPeriodStartEnd(Date: Date; var StartDate: Date; var EndDate: Date; var PeriodError: Boolean; Steps: Integer; Type: Option " ",Period,"Fiscal Year"; RangeFromType: Option Int,CP,LP; RangeToType: Option Int,CP,LP; RangeFromInt: Integer; RangeToInt: Integer)gone after 26
gone
AccPeriodStartOrEnd(AccountingPeriod: Record "Accounting Period"; CurrentPeriodNo: Integer; RangeType: Option Int,CP,LP; RangeInt: Integer; EndDate: Boolean; var Date: Date)25 to 26
gone
AccPeriodStartEnd(Date: Date; var StartDate: Date; var EndDate: Date; var PeriodError: Boolean; Steps: Integer; Type: Enum "Period Type"; RangeFromType: Enum "Period Formula Range"; RangeToType: Enum "Period Formula Range"; RangeFromInt: Integer; RangeToInt: Integer)new in 27
added
AccPeriodStartOrEnd(AccountingPeriod: Record "Accounting Period"; CurrentPeriodNo: Integer; RangeType: Enum "Period Formula Range"; RangeInt: Integer; EndDate: Boolean; var Date: Date)new in 27
added

All 7 changes in 17-29