Codeunit "FA Jnl.-Post Line"

ID 5632
Namespace: Microsoft.FixedAssets.Posting

Properties

Name Value
Permissions TableData "FA Ledger Entry" = r, TableData "FA Register" = rm, TableData "Maintenance Ledger Entry" = r, TableData "Ins. Coverage Ledger Entry" = r

Methods

FAJnlPostLine

procedure FAJnlPostLine(FAJnlLine: Record "FA Journal Line", CheckLine: Boolean)

Parameters

Name Type Description
FAJnlLine Table Microsoft.FixedAssets.Journal."FA Journal Line"
CheckLine Boolean

GenJnlPostLine

procedure GenJnlPostLine(GenJnlLine: Record "Gen. Journal Line", FAAmount: Decimal, VATAmount: Decimal, NextTransactionNo: Integer, NextGLEntryNo: Integer, GLRegisterNo: Integer)

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
FAAmount Decimal
VATAmount Decimal
NextTransactionNo Integer
NextGLEntryNo Integer
GLRegisterNo Integer

PostReverseType

procedure PostReverseType(FALedgEntry: Record "FA Ledger Entry")

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

PostGLBalAcc

procedure PostGLBalAcc(FALedgEntry: Record "FA Ledger Entry", AllocatedPct: Decimal)

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
AllocatedPct Decimal

FindFirstGLAcc

procedure FindFirstGLAcc(var FAGLPostBuf: Record "FA G/L Posting Buffer"): Boolean

Parameters

Name Type Description
FAGLPostBuf Table Microsoft.FixedAssets.Journal."FA G/L Posting Buffer"

Returns

Type Description
Boolean

GetNextGLAcc

procedure GetNextGLAcc(var FAGLPostBuf: Record "FA G/L Posting Buffer"): Integer

Parameters

Name Type Description
FAGLPostBuf Table Microsoft.FixedAssets.Journal."FA G/L Posting Buffer"

Returns

Type Description
Integer

SetResultOnDisposal

procedure SetResultOnDisposal(var FALedgEntry: Record "FA Ledger Entry")

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

UpdateRegNo

procedure UpdateRegNo(GLRegNo: Integer)

Parameters

Name Type Description
GLRegNo Integer

Events

OnAfterFAJnlPostLine

[IntegrationEvent(True,False)]
local procedure OnAfterFAJnlPostLine(var FAJournalLine: Record "FA Journal Line")

Parameters

Name Type Description
FAJournalLine Table Microsoft.FixedAssets.Journal."FA Journal Line"

OnAfterGenJnlPostLine

[IntegrationEvent(True,False)]
local procedure OnAfterGenJnlPostLine(var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

OnAfterPostDisposalEntry

[IntegrationEvent(True,False)]
local procedure OnAfterPostDisposalEntry(var FALedgEntry: Record "FA Ledger Entry", DeprBook: Record "Depreciation Book", FANo: Code[20], var FAInsertLedgEntry: Codeunit "FA Insert Ledger Entry")

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
DeprBook Table Microsoft.FixedAssets.Depreciation."Depreciation Book"
FANo Code[20]
FAInsertLedgEntry Codeunit Microsoft.FixedAssets.Ledger."FA Insert Ledger Entry"

OnAfterPostFixedAsset

[IntegrationEvent(False,False)]
local procedure OnAfterPostFixedAsset(var FA: Record "Fixed Asset", FALedgEntry: Record "FA Ledger Entry")

Parameters

Name Type Description
FA Table Microsoft.FixedAssets.FixedAsset."Fixed Asset"
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

OnBeforeFAJnlPostLine

[IntegrationEvent(True,False)]
local procedure OnBeforeFAJnlPostLine(var FAJournalLine: Record "FA Journal Line", var FAInsertLedgerEntry: Codeunit "FA Insert Ledger Entry", CheckLine: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
FAJournalLine Table Microsoft.FixedAssets.Journal."FA Journal Line"
FAInsertLedgerEntry Codeunit Microsoft.FixedAssets.Ledger."FA Insert Ledger Entry"
CheckLine Boolean
IsHandled Boolean

OnBeforeGenJnlPostLine

[IntegrationEvent(True,False)]
local procedure OnBeforeGenJnlPostLine(var GenJournalLine: Record "Gen. Journal Line", var FAInsertLedgerEntry: Codeunit "FA Insert Ledger Entry", FAAmount: Decimal, VATAmount: Decimal, NextTransactionNo: Integer, NextGLEntryNo: Integer, GLRegisterNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
FAInsertLedgerEntry Codeunit Microsoft.FixedAssets.Ledger."FA Insert Ledger Entry"
FAAmount Decimal
VATAmount Decimal
NextTransactionNo Integer
NextGLEntryNo Integer
GLRegisterNo Integer
IsHandled Boolean

OnBeforePostAllocation

[IntegrationEvent(True,False)]
local procedure OnBeforePostAllocation(var FALedgEntry: Record "FA Ledger Entry", var IsHandled: Boolean)

Parameters

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

OnBeforePostBudgetAsset

[IntegrationEvent(False,False)]
local procedure OnBeforePostBudgetAsset(var FALedgerEntry: Record "FA Ledger Entry", BudgetNo: Code[20], var IsHandled: Boolean)

Parameters

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

OnBeforePostReverseType

[IntegrationEvent(False,False)]
local procedure OnBeforePostReverseType(var FALedgEntry: Record "FA Ledger Entry")

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

OnBeforePostDeprUntilDate

[IntegrationEvent(True,False)]
local procedure OnBeforePostDeprUntilDate(var FALedgEntry: Record "FA Ledger Entry", var FAPostingDate: Date, Type: Option, var IsHandled: Boolean)

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FAPostingDate Date
Type Option
IsHandled Boolean

OnBeforePostDisposalEntry

[IntegrationEvent(True,False)]
local procedure OnBeforePostDisposalEntry(var FALedgEntry: Record "FA Ledger Entry", DeprBook: Record "Depreciation Book", FANo: Code[20], ErrorEntryNo: Integer, var IsHandled: Boolean, var FAInsertLedgEntry: Codeunit "FA Insert Ledger Entry")

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
DeprBook Table Microsoft.FixedAssets.Depreciation."Depreciation Book"
FANo Code[20]
ErrorEntryNo Integer
IsHandled Boolean
FAInsertLedgEntry Codeunit Microsoft.FixedAssets.Ledger."FA Insert Ledger Entry"

OnBeforePostFixedAsset

[IntegrationEvent(False,False)]
local procedure OnBeforePostFixedAsset(FANo: Code[20], DeprBookCode: Code[10], FAPostingType: Enum "FA Journal Line FA Posting Type", FALedgEntry: Record "FA Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
FANo Code[20]
DeprBookCode Code[10]
FAPostingType Enum Microsoft.FixedAssets.Journal."FA Journal Line FA Posting Type"
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
IsHandled Boolean

OnBeforePostMaintenanceFromGenJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostMaintenanceFromGenJnlLine(var GenJournalLine: Record "Gen. Journal Line", var FALedgerEntry: Record "FA Ledger Entry", FAAmount: Decimal, VATAmount: Decimal)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FAAmount Decimal
VATAmount Decimal

OnBeforePostFixedAssetFromGenJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostFixedAssetFromGenJnlLine(var GenJournalLine: Record "Gen. Journal Line", var FALedgerEntry: Record "FA Ledger Entry", FAAmount: Decimal, VATAmount: Decimal, GLRegisterNo: Integer)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
FAAmount Decimal
VATAmount Decimal
GLRegisterNo Integer

OnPostFixedAssetOnBeforeInsertEntry

[IntegrationEvent(False,False)]
local procedure OnPostFixedAssetOnBeforeInsertEntry(var FALedgEntry: Record "FA Ledger Entry")

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

OnPostSalvageValueOnBeforeInsertEntry

[IntegrationEvent(False,False)]
local procedure OnPostSalvageValueOnBeforeInsertEntry(var FALedgEntry: Record "FA Ledger Entry")

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

OnPostMaintenanceOnBeforeInsertEntry

[IntegrationEvent(False,False)]
local procedure OnPostMaintenanceOnBeforeInsertEntry(var MaintenanceLedgEntry: Record "Maintenance Ledger Entry")

Parameters

Name Type Description
MaintenanceLedgEntry Table Microsoft.FixedAssets.Maintenance."Maintenance Ledger Entry"

OnPostBudgetAssetOnBeforeInsertMaintenanceLedgEntry

[IntegrationEvent(False,False)]
local procedure OnPostBudgetAssetOnBeforeInsertMaintenanceLedgEntry(var MaintenanceLedgEntry: Record "Maintenance Ledger Entry")

Parameters

Name Type Description
MaintenanceLedgEntry Table Microsoft.FixedAssets.Maintenance."Maintenance Ledger Entry"

OnPostBudgetAssetOnBeforeInsertFAEntry

[IntegrationEvent(False,False)]
local procedure OnPostBudgetAssetOnBeforeInsertFAEntry(var FALedgEntry: Record "FA Ledger Entry")

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

OnAfterPostAllocation

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

Parameters

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

OnBeforePostGLBalAcc

[IntegrationEvent(False,False)]
local procedure OnBeforePostGLBalAcc(FALedgerEntry: Record "FA Ledger Entry", var AllocatedPct: Decimal)

Parameters

Name Type Description
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
AllocatedPct Decimal

OnPostFixedAssetPostDisposalEntryForOtherFAPostingType

[IntegrationEvent(False,False)]
local procedure OnPostFixedAssetPostDisposalEntryForOtherFAPostingType(FAPostingType: Enum "FA Journal Line FA Posting Type", var IsHandled: Boolean)

Parameters

Name Type Description
FAPostingType Enum Microsoft.FixedAssets.Journal."FA Journal Line FA Posting Type"
IsHandled Boolean

OnBeforeDeprLine

[IntegrationEvent(False,False)]
local procedure OnBeforeDeprLine(FAPostingType: Enum "FA Journal Line FA Posting Type", DeprUntilDate: Boolean, Amount2: Decimal, var IsHandled: Boolean, var Result: Boolean)

Parameters

Name Type Description
FAPostingType Enum Microsoft.FixedAssets.Journal."FA Journal Line FA Posting Type"
DeprUntilDate Boolean
Amount2 Decimal
IsHandled Boolean
Result Boolean

OnBeforeUpdateRegNo

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateRegNo(GLRegNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
GLRegNo Integer
IsHandled Boolean

OnPostFixedAssetOnBeforeFixedAssetTestField

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

Parameters

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

OnPostDisposalEntryOnAfterPostDisposalType

[IntegrationEvent(False,False)]
local procedure OnPostDisposalEntryOnAfterPostDisposalType(var FAInsertLedgerEntry: Codeunit "FA Insert Ledger Entry", var FALedgerEntry: Record "FA Ledger Entry", DisposalType: Option, EntryAmounts: array[14] of Decimal)

Parameters

Name Type Description
FAInsertLedgerEntry Codeunit Microsoft.FixedAssets.Ledger."FA Insert Ledger Entry"
FALedgerEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"
DisposalType Option
EntryAmounts array[14] of Decimal

OnSetResultOnDisposalOnAfterCalcGainLoss

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

Parameters

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

OnCalcResultOnDisposalOnAfterCalcGainLoss

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

Parameters

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

See also