Codeunit "FA Check Consistency"

ID 5606
Namespace: Microsoft.FixedAssets.FixedAsset

Properties

Name Value
Permissions TableData "FA Ledger Entry" = r, TableData "FA Posting Type Setup" = r, TableData "FA Depreciation Book" = rm, TableData "Maintenance Ledger Entry" = rm, TableData "Ins. Coverage Ledger Entry" = rm
TableNo Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

Methods

SetFAPostingDate

procedure SetFAPostingDate(var FALedgEntry2: Record "FA Ledger Entry", LocalCall: Boolean)

Parameters

Name Type Description
FALedgEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
LocalCall Boolean

CheckDisposalDate

procedure CheckDisposalDate(FADeprBook: Record "FA Depreciation Book", FixedAsset: Record "Fixed Asset")

Parameters

Name Type Description
FADeprBook Table Microsoft.FixedAssets.Depreciation."FA Depreciation Book"
FixedAsset Table Microsoft.FixedAssets.FixedAsset."Fixed Asset"

Events

OnBeforeCheckForError

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckForError(FALedgEntry2: Record "FA Ledger Entry", var FAJnlLine: Record "FA Journal Line", FAPostingTypeSetup: Record "FA Posting Type Setup", NewAmount: Decimal, BookValue: Decimal, SalvageValue: Decimal, DeprBasis: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
FALedgEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FAJnlLine Table Microsoft.FixedAssets.Journal."FA Journal Line"
FAPostingTypeSetup Table Microsoft.FixedAssets.Posting."FA Posting Type Setup"
NewAmount Decimal
BookValue Decimal
SalvageValue Decimal
DeprBasis Decimal
IsHandled Boolean

OnCheckNormalPostingOnBeforeCalcSumsForBookValue

[IntegrationEvent(False,False)]
local procedure OnCheckNormalPostingOnBeforeCalcSumsForBookValue(var FALedgerEntry: Record "FA Ledger Entry", FAPostingDate: Date)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FAPostingDate Date

OnCheckNormalPostingOnBeforeFind

[IntegrationEvent(False,False)]
local procedure OnCheckNormalPostingOnBeforeFind(var FALedgerEntry: Record "FA Ledger Entry", FAPostingDate: Date)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FAPostingDate Date

OnCheckNormalPostingOnAfterSetFALedgerEntryFilters

[IntegrationEvent(False,False)]
local procedure OnCheckNormalPostingOnAfterSetFALedgerEntryFilters(var FALedgerEntry: Record "FA Ledger Entry", FANo: Code[20], DepreciationBookCode: Code[10])

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FANo Code[20]
DepreciationBookCode Code[10]

OnCheckSalesPostingOnAfterSetFALedgerEntryFilters

[IntegrationEvent(False,False)]
local procedure OnCheckSalesPostingOnAfterSetFALedgerEntryFilters(var FALedgerEntry: Record "FA Ledger Entry", FANo: Code[20], DepreciationBookCode: Code[10])

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FANo Code[20]
DepreciationBookCode Code[10]

OnCheckSalesPostingOnBeforeFirstFind

[IntegrationEvent(False,False)]
local procedure OnCheckSalesPostingOnBeforeFirstFind(var FALedgerEntry: Record "FA Ledger Entry", FANo: Code[20], DepreciationBookCode: Code[10])

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FANo Code[20]
DepreciationBookCode Code[10]

OnSetFAPostingDateOnBeforeFADeprBookModify

[IntegrationEvent(False,False)]
local procedure OnSetFAPostingDateOnBeforeFADeprBookModify(var FADepreciationBook: Record "FA Depreciation Book", var FALedgerEntry: Record "FA Ledger Entry", MaxDate: Date, MinDate: Date, GLDate: Date)

Parameters

Name Type Description
FADepreciationBook Table Microsoft.FixedAssets.Depreciation."FA Depreciation Book"
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
MaxDate Date
MinDate Date
GLDate Date

OnBeforeCreateDisposerError

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDisposerError(FixedAsset: Record "Fixed Asset", DeprBookCode: Code[10], var IsHandled: Boolean, FALedgerEntry: Record "FA Ledger Entry")

Parameters

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

OnBeforeCreatePostingTypeError

[IntegrationEvent(False,False)]
local procedure OnBeforeCreatePostingTypeError(FAJnlLine: Record "FA Journal Line", FALedgEntry2: Record "FA Ledger Entry", DeprBook: Record "Depreciation Book", var IsHandled: Boolean, NewAmount: Decimal)

Parameters

Name Type Description
FAJnlLine Table Microsoft.FixedAssets.Journal."FA Journal Line"
FALedgEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
DeprBook Table Microsoft.FixedAssets.Depreciation."Depreciation Book"
IsHandled Boolean
NewAmount Decimal

OnSetFAPostingDateOnBeforeSetGLDate

[IntegrationEvent(False,False)]
local procedure OnSetFAPostingDateOnBeforeSetGLDate(FANo: Code[20], DepreciationBookCode: Code[10], var FALedgerEntry: Record "FA Ledger Entry", var FALedgerEntry2: Record "FA Ledger Entry", var GLDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
FANo Code[20]
DepreciationBookCode Code[10]
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FALedgerEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
GLDate Date
IsHandled Boolean

OnSetFAPostingDateOnBeforeSetMinDate

[IntegrationEvent(False,False)]
local procedure OnSetFAPostingDateOnBeforeSetMinDate(FANo: Code[20], DepreciationBookCode: Code[10], var FALedgerEntry: Record "FA Ledger Entry", var FALedgerEntry2: Record "FA Ledger Entry", var MinDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
FANo Code[20]
DepreciationBookCode Code[10]
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FALedgerEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
MinDate Date
IsHandled Boolean

OnBeforeCreateAcquisitionCostError

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateAcquisitionCostError(FAJournalLine: Record "FA Journal Line", var FALedgerEntry2: Record "FA Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
FAJournalLine Table Microsoft.FixedAssets.Journal."FA Journal Line"
FALedgerEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
IsHandled Boolean

OnBeforeCreateBookValueError

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateBookValueError(FALedgerEntry2: Record "FA Ledger Entry", BookValue: Decimal, SalvageValue: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
FALedgerEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
BookValue Decimal
SalvageValue Decimal
IsHandled Boolean

OnBeforeCheckSalesPostingIgnore

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSalesPostingIgnore(var FALedgerEntry: Record "FA Ledger Entry", FANo: Code[20], DepreciationBookCode: Code[10], var IsHandled: Boolean)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FANo Code[20]
DepreciationBookCode Code[10]
IsHandled Boolean

OnBeforeCreateDeprBasisError

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDeprBasisError(FALedgerEntry2: Record "FA Ledger Entry", DeprBasis: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
FALedgerEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
DeprBasis Decimal
IsHandled Boolean

OnRunOnBeforeCheckSalesPostingCheckOther

[IntegrationEvent(False,False)]
local procedure OnRunOnBeforeCheckSalesPostingCheckOther(var FALedgerEntry: Record "FA Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
IsHandled Boolean

OnCheckNormalPostingOnCalcValues

[IntegrationEvent(False,False)]
local procedure OnCheckNormalPostingOnCalcValues(FANo: Code[20], DepreciationBookCode: Code[10], var FALedgerEntry: Record "FA Ledger Entry", var FALedgerEntry2: Record "FA Ledger Entry", FAPostingDate: Date, var BookValue: Decimal, var DeprBasis: Decimal, var SalvageValue: Decimal, var NewAmount: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
FANo Code[20]
DepreciationBookCode Code[10]
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FALedgerEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FAPostingDate Date
BookValue Decimal
DeprBasis Decimal
SalvageValue Decimal
NewAmount Decimal
IsHandled Boolean

OnCheckNormalPostingOnCalcValuesFinal

[IntegrationEvent(False,False)]
local procedure OnCheckNormalPostingOnCalcValuesFinal(FANo: Code[20], DepreciationBookCode: Code[10], var FALedgerEntry: Record "FA Ledger Entry", var FALedgerEntry2: Record "FA Ledger Entry", FAPostingDate: Date, var BookValue: Decimal, var DeprBasis: Decimal, var SalvageValue: Decimal, var NewAmount: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
FANo Code[20]
DepreciationBookCode Code[10]
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FALedgerEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FAPostingDate Date
BookValue Decimal
DeprBasis Decimal
SalvageValue Decimal
NewAmount Decimal
IsHandled Boolean

OnBeforeRun

[IntegrationEvent(False,False)]
local procedure OnBeforeRun(var FALedgerEntry: Record "FA Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
IsHandled Boolean

OnSetFAPostingDateOnAfterSetFALedgerEntryFilters

[IntegrationEvent(False,False)]
local procedure OnSetFAPostingDateOnAfterSetFALedgerEntryFilters(FANo: Code[20], DepreciationBookCode: Code[10], var FALedgerEntry: Record "FA Ledger Entry", var FALedgerEntry2: Record "FA Ledger Entry")

Parameters

Name Type Description
FANo Code[20]
DepreciationBookCode Code[10]
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FALedgerEntry2 Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

See also