Codeunit PeriodPageManagement

ID 362
Namespace: Microsoft.Foundation.Period

Methods

FindDate

procedure FindDate(SearchString: Text[3], var Calendar: Record Date, PeriodType: Enum "Analysis Period Type"): Boolean

Parameters

Name Type Description
SearchString Text[3]
Calendar Table System.Utilities.Date
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"

Returns

Type Description
Boolean

NextDate

procedure NextDate(NextStep: Integer, var Calendar: Record Date, PeriodType: Enum "Analysis Period Type"): Integer

Parameters

Name Type Description
NextStep Integer
Calendar Table System.Utilities.Date
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"

Returns

Type Description
Integer

CreatePeriodFormat

procedure CreatePeriodFormat(PeriodType: Enum "Analysis Period Type", Date: Date): Text[10]

Parameters

Name Type Description
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
Date Date

Returns

Type Description
Text[10]

MoveDateByPeriod

procedure MoveDateByPeriod(Date: Date, PeriodType: Option, MoveByNoOfPeriods: Integer): Date

Parameters

Name Type Description
Date Date
PeriodType Option
MoveByNoOfPeriods Integer

Returns

Type Description
Date

MoveDateByPeriodToEndOfPeriod

procedure MoveDateByPeriodToEndOfPeriod(Date: Date, PeriodType: Option, MoveByNoOfPeriods: Integer): Date

Parameters

Name Type Description
Date Date
PeriodType Option
MoveByNoOfPeriods Integer

Returns

Type Description
Date

GetPeriodTypeSymbol

procedure GetPeriodTypeSymbol(PeriodType: Option): Text[1]

Parameters

Name Type Description
PeriodType Option

Returns

Type Description
Text[1]

EndOfPeriod

procedure EndOfPeriod(): Date

Returns

Type Description
Date

GetFullPeriodDateFilter

procedure GetFullPeriodDateFilter(PeriodType: Enum "Analysis Period Type", DateFilter: Text): Text

Parameters

Name Type Description
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
DateFilter Text

Returns

Type Description
Text

FindPeriod

procedure FindPeriod(var Item: Record Item, SearchText: Text[3], PeriodType: Enum "Analysis Period Type", AmountType: Enum "Analysis Amount Type")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
SearchText Text[3]
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
AmountType Enum Microsoft.Foundation.Enums."Analysis Amount Type"

FindPeriodOnMatrixPage

procedure FindPeriodOnMatrixPage(var DateFilter: Text, var InternalDateFilter: Text, SearchText: Text[3], PeriodType: Enum "Analysis Period Type", UpdateDateFilter: Boolean)

Parameters

Name Type Description
DateFilter Text
InternalDateFilter Text
SearchText Text[3]
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
UpdateDateFilter Boolean

Events

OnAfterCreatePeriodFormat

[IntegrationEvent(False,False)]
local procedure OnAfterCreatePeriodFormat(PeriodType: Enum "Analysis Period Type", Date: Date, var PeriodFormat: Text[10], var AccountingPeriod: Record "Accounting Period")

Parameters

Name Type Description
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
Date Date
PeriodFormat Text[10]
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"

OnBeforeGetFullPeriodDateFilter

[IntegrationEvent(False,False)]
local procedure OnBeforeGetFullPeriodDateFilter(PeriodType: Enum "Analysis Period Type", DateFilter: Text, var AccountingPeriod: Record "Accounting Period", var Result: Text, var IsHandled: Boolean)

Parameters

Name Type Description
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
DateFilter Text
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"
Result Text
IsHandled Boolean

OnFindDateOnAfterCalcUseAccountingPeriod

[IntegrationEvent(False,False)]
local procedure OnFindDateOnAfterCalcUseAccountingPeriod(var Calendar: Record Date, PeriodType: Enum "Analysis Period Type", var AccountingPeriod: Record "Accounting Period", var UseAccountingPeriod: Boolean, var Found: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Calendar Table System.Utilities.Date
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"
UseAccountingPeriod Boolean
Found Boolean
IsHandled Boolean

OnNextDateOnAfterCalcUseAccountingPeriod

[IntegrationEvent(False,False)]
local procedure OnNextDateOnAfterCalcUseAccountingPeriod(var Calendar: Record Date, PeriodType: Enum "Analysis Period Type", var AccountingPeriod: Record "Accounting Period", var UseAccountingPeriod: Boolean)

Parameters

Name Type Description
Calendar Table System.Utilities.Date
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"
UseAccountingPeriod Boolean

OnBeforeFindDate

[IntegrationEvent(False,False)]
local procedure OnBeforeFindDate(SearchString: Text[3], var Calendar: Record Date, PeriodType: Enum "Analysis Period Type", var Found: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SearchString Text[3]
Calendar Table System.Utilities.Date
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
Found Boolean
IsHandled Boolean

OnBeforeNextDate

[IntegrationEvent(False,False)]
local procedure OnBeforeNextDate(NextStep: Integer, var Calendar: Record Date, PeriodType: Enum "Analysis Period Type", var AccountingPeriod: Record "Accounting Period", var Result: Integer, var Ishandled: Boolean)

Parameters

Name Type Description
NextStep Integer
Calendar Table System.Utilities.Date
PeriodType Enum Microsoft.Foundation.Enums."Analysis Period Type"
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"
Result Integer
Ishandled Boolean

See also