Codeunit "EmplEntry-Apply Posted Entries"

ID 224
Namespace: Microsoft.HumanResources.Payables

Properties

Name Value
EventSubscriberInstance Manual
Permissions TableData "Employee Ledger Entry" = rimd, TableData "Detailed Employee Ledger Entry" = rimd
TableNo Table Microsoft.HumanResources.Payables."Employee Ledger Entry"

Methods

Apply

procedure Apply(EmplLedgEntry: Record "Employee Ledger Entry", ApplyUnapplyParameters: Record "Apply Unapply Parameters" temporary)

Parameters

Name Type Description
EmplLedgEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"
ApplyUnapplyParameters Table Microsoft.Finance.ReceivablesPayables."Apply Unapply Parameters"

GetApplicationDate

procedure GetApplicationDate(EmplLedgEntry: Record "Employee Ledger Entry"): Date

Parameters

Name Type Description
EmplLedgEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"

Returns

Type Description
Date

FindLastApplEntry

procedure FindLastApplEntry(EmplLedgEntryNo: Integer): Integer

Parameters

Name Type Description
EmplLedgEntryNo Integer

Returns

Type Description
Integer

UnApplyDtldEmplLedgEntry

procedure UnApplyDtldEmplLedgEntry(DtldEmplLedgEntry: Record "Detailed Employee Ledger Entry")

Parameters

Name Type Description
DtldEmplLedgEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"

UnApplyEmplLedgEntry

procedure UnApplyEmplLedgEntry(EmplLedgEntryNo: Integer)

Parameters

Name Type Description
EmplLedgEntryNo Integer

CheckEmployeeLedgerEntryToUnapply

procedure CheckEmployeeLedgerEntryToUnapply(EmployeeLedgerEntryNo: Integer, var DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry")

Parameters

Name Type Description
EmployeeLedgerEntryNo Integer
DetailedEmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"

PostUnApplyEmployee

procedure PostUnApplyEmployee(DtldEmplLedgEntry2: Record "Detailed Employee Ledger Entry", ApplyUnapplyParameters: Record "Apply Unapply Parameters" temporary)

Parameters

Name Type Description
DtldEmplLedgEntry2 Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"
ApplyUnapplyParameters Table Microsoft.Finance.ReceivablesPayables."Apply Unapply Parameters"

ApplyEmplEntryFormEntry

procedure ApplyEmplEntryFormEntry(var ApplyingEmplLedgEntry: Record "Employee Ledger Entry")

Parameters

Name Type Description
ApplyingEmplLedgEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"

PreviewApply

procedure PreviewApply(EmployeeLedgerEntry: Record "Employee Ledger Entry", ApplyUnapplyParameters: Record "Apply Unapply Parameters" temporary)

Parameters

Name Type Description
EmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"
ApplyUnapplyParameters Table Microsoft.Finance.ReceivablesPayables."Apply Unapply Parameters"

PreviewUnapply

procedure PreviewUnapply(DetailedEmployeeLedgEntry: Record "Detailed Employee Ledger Entry", ApplyUnapplyParameters: Record "Apply Unapply Parameters" temporary)

Parameters

Name Type Description
DetailedEmployeeLedgEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"
ApplyUnapplyParameters Table Microsoft.Finance.ReceivablesPayables."Apply Unapply Parameters"

SetApplyContext

procedure SetApplyContext(ApplyUnapplyParameters: Record "Apply Unapply Parameters" temporary)

Parameters

Name Type Description
ApplyUnapplyParameters Table Microsoft.Finance.ReceivablesPayables."Apply Unapply Parameters"

SetUnapplyContext

procedure SetUnapplyContext(var DetailedEmployeeLedgEntry: Record "Detailed Employee Ledger Entry", ApplyUnapplyParameters: Record "Apply Unapply Parameters" temporary)

Parameters

Name Type Description
DetailedEmployeeLedgEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"
ApplyUnapplyParameters Table Microsoft.Finance.ReceivablesPayables."Apply Unapply Parameters"

Events

OnBeforeApply

[IntegrationEvent(False,False)]
local procedure OnBeforeApply(var EmployeeLedgerEntry: Record "Employee Ledger Entry", var DocumentNo: Code[20], var ApplicationDate: Date)

Parameters

Name Type Description
EmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"
DocumentNo Code[20]
ApplicationDate Date

OnEmplPostApplyEmplLedgEntryOnBeforeGenJnlPostLine

[IntegrationEvent(False,False)]
local procedure OnEmplPostApplyEmplLedgEntryOnBeforeGenJnlPostLine(var GenJournalLine: Record "Gen. Journal Line", EmployeeLedgerEntry: Record "Employee Ledger Entry")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
EmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"

OnPostUnApplyEmployeeOnAfterCheckMaxDateCompressed

[IntegrationEvent(False,False)]
local procedure OnPostUnApplyEmployeeOnAfterCheckMaxDateCompressed(var DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry")

Parameters

Name Type Description
DetailedEmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"

OnPostUnApplyEmployeeOnAfterGetEmplLedgEntry

[IntegrationEvent(False,False)]
local procedure OnPostUnApplyEmployeeOnAfterGetEmplLedgEntry(var DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry", var EmployeeLedgerEntry: Record "Employee Ledger Entry")

Parameters

Name Type Description
DetailedEmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"
EmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"

OnPostUnApplyEmployeeOnBeforeGenJnlPostLineUnapplyEmplLedgEntry

[IntegrationEvent(False,False)]
local procedure OnPostUnApplyEmployeeOnBeforeGenJnlPostLineUnapplyEmplLedgEntry(var GenJournalLine: Record "Gen. Journal Line", EmplLedgerEntry: Record "Employee Ledger Entry", DetailedEmplLedgEntry: Record "Detailed Employee Ledger Entry", var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
EmplLedgerEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"
DetailedEmplLedgEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"
GenJnlPostLine Codeunit Microsoft.Finance.GeneralLedger.Posting."Gen. Jnl.-Post Line"

OnFindLastTransactionNoOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnFindLastTransactionNoOnAfterSetFilters(var DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry")

Parameters

Name Type Description
DetailedEmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"

OnCollectAffectedLedgerEntriesOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnCollectAffectedLedgerEntriesOnAfterSetFilters(var DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry", DetailedEmployeeLedgEntry2: Record "Detailed Employee Ledger Entry")

Parameters

Name Type Description
DetailedEmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"
DetailedEmployeeLedgEntry2 Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"

OnBeforeRunEmplExchRateAdjustment

[IntegrationEvent(False,False)]
local procedure OnBeforeRunEmplExchRateAdjustment(var GenJnlLine: Record "Gen. Journal Line", var TempEmployeeLedgerEntry: Record "Employee Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
TempEmployeeLedgerEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"
IsHandled Boolean

OnPostUnApplyEmployeeOnAfterRunEmployeeExchRateAdjustment

[IntegrationEvent(False,False)]
local procedure OnPostUnApplyEmployeeOnAfterRunEmployeeExchRateAdjustment(GenJournalLine: Record "Gen. Journal Line", EmplLedgerEntry: Record "Employee Ledger Entry", DetailedEmplLedgEntry: Record "Detailed Employee Ledger Entry", var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line", var TempEmplLedgerEntry: Record "Employee Ledger Entry" temporary)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
EmplLedgerEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"
DetailedEmplLedgEntry Table Microsoft.HumanResources.Payables."Detailed Employee Ledger Entry"
GenJnlPostLine Codeunit Microsoft.Finance.GeneralLedger.Posting."Gen. Jnl.-Post Line"
TempEmplLedgerEntry Table Microsoft.HumanResources.Payables."Employee Ledger Entry"

See also