Codeunit "Accounting Period Mgt."

ID 360
Namespace: Microsoft.Foundation.Period

Properties

Name Value
Permissions tabledata "Accounting Period" = R

Methods

GetPeriodStartingDate

procedure GetPeriodStartingDate(): Date

Returns

Type Description
Date

CheckPostingDateInFiscalYear

procedure CheckPostingDateInFiscalYear(PostingDate: Date)

Parameters

Name Type Description
PostingDate Date

FindFiscalYear

procedure FindFiscalYear(BalanceDate: Date): Date

Parameters

Name Type Description
BalanceDate Date

Returns

Type Description
Date

FindEndOfFiscalYear

procedure FindEndOfFiscalYear(BalanceDate: Date): Date

Parameters

Name Type Description
BalanceDate Date

Returns

Type Description
Date

AccPeriodStartEnd

procedure 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)

Parameters

Name Type Description
Date Date
StartDate Date
EndDate Date
PeriodError Boolean
Steps Integer
Type Enum Microsoft.Foundation.Period."Period Type"
RangeFromType Enum Microsoft.Foundation.Period."Period Formula Range"
RangeToType Enum Microsoft.Foundation.Period."Period Formula Range"
RangeFromInt Integer
RangeToInt Integer

AccPeriodEndDate

procedure AccPeriodEndDate(StartDate: Date): Date

Parameters

Name Type Description
StartDate Date

Returns

Type Description
Date

AccPeriodStartOrEnd

procedure AccPeriodStartOrEnd(AccountingPeriod: Record "Accounting Period", CurrentPeriodNo: Integer, RangeType: Enum "Period Formula Range", RangeInt: Integer, EndDate: Boolean, var Date: Date)

Parameters

Name Type Description
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"
CurrentPeriodNo Integer
RangeType Enum Microsoft.Foundation.Period."Period Formula Range"
RangeInt Integer
EndDate Boolean
Date Date

InitStartYearAccountingPeriod

procedure InitStartYearAccountingPeriod(var AccountingPeriod: Record "Accounting Period", PostingDate: Date)

Parameters

Name Type Description
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"
PostingDate Date

InitDefaultAccountingPeriod

procedure InitDefaultAccountingPeriod(var AccountingPeriod: Record "Accounting Period", PostingDate: Date)

Parameters

Name Type Description
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"
PostingDate Date

GetDefaultPeriodEndingDate

procedure GetDefaultPeriodEndingDate(PostingDate: Date): Date

Parameters

Name Type Description
PostingDate Date

Returns

Type Description
Date

See also