Codeunit "Calculate Custom 1 Depr."

ID 5612
Namespace: Microsoft.FixedAssets.Depreciation

Properties

Name Value
Permissions TableData "FA Ledger Entry" = r, TableData "FA Posting Type Setup" = r

Methods

Calculate

procedure Calculate(var DeprAmount: Decimal, var Custom1DeprAmount: Decimal, var NumberOfDays3: Integer, var Custom1NumberOfDays3: Integer, FANo: Code[20], DeprBookCode2: Code[10], UntilDate2: Date, EntryAmounts2: array[4] of Decimal, DateFromProjection2: Date, DaysInPeriod2: Integer)

Parameters

Name Type Description
DeprAmount Decimal
Custom1DeprAmount Decimal
NumberOfDays3 Integer
Custom1NumberOfDays3 Integer
FANo Code[20]
DeprBookCode2 Code[10]
UntilDate2 Date
EntryAmounts2 array[4] of Decimal
DateFromProjection2 Date
DaysInPeriod2 Integer

Events

OnAfterTransferValues

[IntegrationEvent(False,False)]
local procedure OnAfterTransferValues(FixedAsset: Record "Fixed Asset", DepreciationBook: Record "Depreciation Book", FADepreciationBook: Record "FA Depreciation Book", DeprMethod: Enum "FA Depr. Method Internal", UntilDate: Date, var SalvageValue: Decimal, var AcquisitionCost: Decimal)

Parameters

Name Type Description
FixedAsset Table Microsoft.FixedAssets.FixedAsset."Fixed Asset"
DepreciationBook Table Microsoft.FixedAssets.Depreciation."Depreciation Book"
FADepreciationBook Table Microsoft.FixedAssets.Depreciation."FA Depreciation Book"
DeprMethod Enum Microsoft.FixedAssets.Depreciation."FA Depr. Method Internal"
UntilDate Date
SalvageValue Decimal
AcquisitionCost Decimal

OnBeforeCalculate

[IntegrationEvent(False,False)]
local procedure OnBeforeCalculate(var DeprAmount: Decimal, var Custom1DeprAmount: Decimal, var NumberOfDays3: Integer, var Custom1NumberOfDays3: Integer, FANo: Code[20], DeprBookCode2: Code[10], UntilDate2: Date, EntryAmounts2: array[4] of Decimal, DateFromProjection2: Date, DaysInPeriod2: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
DeprAmount Decimal
Custom1DeprAmount Decimal
NumberOfDays3 Integer
Custom1NumberOfDays3 Integer
FANo Code[20]
DeprBookCode2 Code[10]
UntilDate2 Date
EntryAmounts2 array[4] of Decimal
DateFromProjection2 Date
DaysInPeriod2 Integer
IsHandled Boolean

OnAfterGetDeprBooks

[IntegrationEvent(False,False)]
local procedure OnAfterGetDeprBooks(var DepreciationBook: Record "Depreciation Book", var FADepreciationBook: Record "FA Depreciation Book")

Parameters

Name Type Description
DepreciationBook Table Microsoft.FixedAssets.Depreciation."Depreciation Book"
FADepreciationBook Table Microsoft.FixedAssets.Depreciation."FA Depreciation Book"

OnCalculateOnBeforeCalcCustom1DeprAmount

[IntegrationEvent(False,False)]
local procedure OnCalculateOnBeforeCalcCustom1DeprAmount(var FADepreciationMethod: Enum "FA Depreciation Method", var DeprAmount: Decimal)

Parameters

Name Type Description
FADepreciationMethod Enum Microsoft.FixedAssets.Depreciation."FA Depreciation Method"
DeprAmount Decimal

OnCalcSLAmountOnAfterSetRemainingLife

[IntegrationEvent(False,False)]
local procedure OnCalcSLAmountOnAfterSetRemainingLife(var RemainingLife: Decimal, Custom1PropertyClass: Option, Custom1DeprStartingDate: Date, Custom1DeprUntil: Date)

Parameters

Name Type Description
RemainingLife Decimal
Custom1PropertyClass Option
Custom1DeprStartingDate Date
Custom1DeprUntil Date

See also