Codeunit "Table Depr. Calculation"

ID 5618
Namespace: Microsoft.FixedAssets.Depreciation

Methods

GetTablePercent

procedure GetTablePercent(DeprBookCode: Code[10], DeprTableCode: Code[10], FirstUserDefinedDeprDate: Date, StartingDate: Date, EndingDate: Date): Decimal

Parameters

Name Type Description
DeprBookCode Code[10]
DeprTableCode Code[10]
FirstUserDefinedDeprDate Date
StartingDate Date
EndingDate Date

Returns

Type Description
Decimal

Events

OnBeforeValidateYear365Days

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateYear365Days(DepreBook: Record "Depreciation Book", var IsHandled: Boolean)

Parameters

Name Type Description
DepreBook Table Microsoft.FixedAssets.Depreciation."Depreciation Book"
IsHandled Boolean

OnCreateTableBufferOnAfterCalculateDaysInPeriod

[IntegrationEvent(False,False)]
local procedure OnCreateTableBufferOnAfterCalculateDaysInPeriod(DeprBook: Record "Depreciation Book", AccountingPeriod: Record "Accounting Period", FirstUserDefinedDeprDate: Date, Year365Days: Boolean, var DaysInPeriod: Integer)

Parameters

Name Type Description
DeprBook Table Microsoft.FixedAssets.Depreciation."Depreciation Book"
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"
FirstUserDefinedDeprDate Date
Year365Days Boolean
DaysInPeriod Integer

OnGetTablePercentOnAfterSetLimits

[IntegrationEvent(False,False)]
local procedure OnGetTablePercentOnAfterSetLimits(DeprBookCode: Code[10], DeprTableCode: Code[10], FirstUserDefinedDeprDate: Date, StartingDate: Date, EndingDate: Date, var StartingLimit: Integer, var EndingLimit: Integer)

Parameters

Name Type Description
DeprBookCode Code[10]
DeprTableCode Code[10]
FirstUserDefinedDeprDate Date
StartingDate Date
EndingDate Date
StartingLimit Integer
EndingLimit Integer

See also