Codeunit "Calculate Depreciation"

ID 5610
Namespace: Microsoft.FixedAssets.Depreciation

Methods

Calculate

procedure Calculate(var DeprAmount: Decimal, var Custom1Amount: Decimal, var NumberOfDays: Integer, var Custom1NumberOfDays: Integer, FANo: Code[20], DeprBookCode: Code[10], UntilDate: Date, EntryAmounts: array[4] of Decimal, DateFromProjection: Date, DaysInPeriod: Integer)

Parameters

Name Type Description
DeprAmount Decimal
Custom1Amount Decimal
NumberOfDays Integer
Custom1NumberOfDays Integer
FANo Code[20]
DeprBookCode Code[10]
UntilDate Date
EntryAmounts array[4] of Decimal
DateFromProjection Date
DaysInPeriod Integer

Events

OnBeforeCalculate

[IntegrationEvent(False,False)]
local procedure OnBeforeCalculate(var DeprAmount: Decimal, var Custom1Amount: Decimal, var NumberOfDays: Integer, var Custom1NumberOfDays: Integer, FANo: Code[20], DeprBookCode: Code[10], UntilDate: Date, EntryAmounts: array[4] of Decimal, DateFromProjection: Date, DaysInPeriod: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
DeprAmount Decimal
Custom1Amount Decimal
NumberOfDays Integer
Custom1NumberOfDays Integer
FANo Code[20]
DeprBookCode Code[10]
UntilDate Date
EntryAmounts array[4] of Decimal
DateFromProjection Date
DaysInPeriod Integer
IsHandled Boolean

OnBeforeCheckDeprDaysInFiscalYear

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDeprDaysInFiscalYear(FADeprBook: Record "FA Depreciation Book", CheckDeprDays: Boolean, UntilDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
FADeprBook Table Microsoft.FixedAssets.Depreciation."FA Depreciation Book"
CheckDeprDays Boolean
UntilDate Date
IsHandled Boolean

OnAfterCalcDeprYearCalculateAdditionalDepr2ndYear

[IntegrationEvent(False,False)]
local procedure OnAfterCalcDeprYearCalculateAdditionalDepr2ndYear(var DeprAmount: Decimal, FANo: Code[20], DepreBookCode: Code[10])

Parameters

Name Type Description
DeprAmount Decimal
FANo Code[20]
DepreBookCode Code[10]

See also