Codeunit "FA General Report"

ID 5626
Namespace: Microsoft.FixedAssets.FixedAsset

Properties

Name Value
Permissions TableData "Fixed Asset" = rm

Methods

GetLastDate

procedure GetLastDate(FANo: Code[20], PostingType: Integer, EndingDate: Date, DeprBookCode: Code[10], GLEntry: Boolean): Date

Parameters

Name Type Description
FANo Code[20]
PostingType Integer
EndingDate Date
DeprBookCode Code[10]
GLEntry Boolean

Returns

Type Description
Date

CalcFAPostedAmount

procedure CalcFAPostedAmount(FANo: Code[20], PostingType: Integer, Period: Option, StartingDate: Date, EndingDate: Date, DeprBookCode: Code[10], BeforeAmount: Decimal, UntilAmount: Decimal, OnlyReclassified: Boolean, OnlyBookValue: Boolean): Decimal

Parameters

Name Type Description
FANo Code[20]
PostingType Integer
Period Option
StartingDate Date
EndingDate Date
DeprBookCode Code[10]
BeforeAmount Decimal
UntilAmount Decimal
OnlyReclassified Boolean
OnlyBookValue Boolean

Returns

Type Description
Decimal

CalcGLPostedAmount

procedure CalcGLPostedAmount(FANo: Code[20], PostingType: Integer, Period: Option, StartingDate: Date, EndingDate: Date, DeprBookCode: Code[10]): Decimal

Parameters

Name Type Description
FANo Code[20]
PostingType Integer
Period Option
StartingDate Date
EndingDate Date
DeprBookCode Code[10]

Returns

Type Description
Decimal

AppendFAPostingFilter

procedure AppendFAPostingFilter(var FA: Record "Fixed Asset", StartingDate: Date, EndingDate: Date)

Parameters

Name Type Description
FA Table Microsoft.FixedAssets.FixedAsset."Fixed Asset"
StartingDate Date
EndingDate Date

AppendPostingDateFilter

procedure AppendPostingDateFilter(var FAFilter: Text, StartingDate: Date, EndingDate: Date)

Parameters

Name Type Description
FAFilter Text
StartingDate Date
EndingDate Date

ValidateDates

procedure ValidateDates(StartingDate: Date, EndingDate: Date)

Parameters

Name Type Description
StartingDate Date
EndingDate Date

ValidateDeprDates

procedure ValidateDeprDates(StartingDate: Date, EndingDate: Date)

Parameters

Name Type Description
StartingDate Date
EndingDate Date

SetFAPostingGroup

procedure SetFAPostingGroup(var FA2: Record "Fixed Asset", DeprBookCode: Code[10])

Parameters

Name Type Description
FA2 Table Microsoft.FixedAssets.FixedAsset."Fixed Asset"
DeprBookCode Code[10]

Events

OnAfterCalcFAPostedAmount

[IntegrationEvent(False,False)]
local procedure OnAfterCalcFAPostedAmount(var FALedgerEntry: Record "FA Ledger Entry", PostingType: Integer, Period: Option, BeforeAmount: Decimal, UntilAmount: Decimal, var Result: Decimal)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
PostingType Integer
Period Option
BeforeAmount Decimal
UntilAmount Decimal
Result Decimal

OnBeforeCalcFAPostedAmount

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcFAPostedAmount(var FALedgerEntry: Record "FA Ledger Entry", PostingType: Integer)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
PostingType Integer

OnCalcGLPostedAmountOnBeforeCalcAmount

[IntegrationEvent(False,False)]
local procedure OnCalcGLPostedAmountOnBeforeCalcAmount(var FALedgerEntry: Record "FA Ledger Entry", PostingType: Integer)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
PostingType Integer

OnGetLastDateOnAfterFALedgEntrySetFilters

[IntegrationEvent(False,False)]
local procedure OnGetLastDateOnAfterFALedgEntrySetFilters(var FALedgerEntry: Record "FA Ledger Entry", var FADeprBook: Record "FA Depreciation Book", PostingType: Integer, FirstLast: Text)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FADeprBook Table Microsoft.FixedAssets.Depreciation."FA Depreciation Book"
PostingType Integer
FirstLast Text

OnBeforeSetFAPostingGroup

[IntegrationEvent(False,False)]
local procedure OnBeforeSetFAPostingGroup(var FixedAsset: Record "Fixed Asset", DeprBookCode: Code[10], var IsHandled: Boolean)

Parameters

Name Type Description
FixedAsset Table Microsoft.FixedAssets.FixedAsset."Fixed Asset"
DeprBookCode Code[10]
IsHandled Boolean

OnCalcGLPostedAmountOnAfterCalcAmount

[IntegrationEvent(False,False)]
local procedure OnCalcGLPostedAmountOnAfterCalcAmount(var FALedgerEntry: Record "FA Ledger Entry", PostingType: Integer, var Amount: Decimal)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
PostingType Integer
Amount Decimal

See also