Page "Apply Vendor Entries"
ID 233
Namespace: Microsoft.Purchases.Payables
Properties
Methods
SetGenJnlLine
procedure SetGenJnlLine(NewGenJnlLine: Record "Gen. Journal Line"; ApplnTypeSelect: Integer)
Parameters
SetPurch
procedure SetPurch(NewPurchHeader: Record "Purchase Header"; var NewVendLedgEntry: Record "Vendor Ledger Entry"; ApplnTypeSelect: Integer)
Parameters
SetVendLedgEntry
procedure SetVendLedgEntry(NewVendLedgEntry: Record "Vendor Ledger Entry")
Parameters
SetApplyingVendLedgEntry
procedure SetApplyingVendLedgEntry()
SetVendApplId
procedure SetVendApplId(CurrentRec: Boolean)
Parameters
| Name |
Type |
Description |
|
CurrentRec
|
Boolean |
|
CheckVendLedgEntry
procedure CheckVendLedgEntry(var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
CalcApplnAmount
procedure CalcApplnAmount()
CheckRounding
procedure CheckRounding()
GetVendLedgEntry
procedure GetVendLedgEntry(var VendLedgEntry: Record "Vendor Ledger Entry")
Parameters
SetAppliesToID
procedure SetAppliesToID(AppliesToID2: Code[50])
Parameters
| Name |
Type |
Description |
|
AppliesToID2
|
Code[50] |
|
CalcOppositeEntriesAmount
procedure CalcOppositeEntriesAmount(var TempAppliedVendorLedgerEntry: Record "Vendor Ledger Entry" temporary): Decimal
Parameters
Returns
GetApplnCurrencyCode
procedure GetApplnCurrencyCode(): Code[10]
Returns
| Type |
Description |
|
Code[10] |
|
GetCalcType
procedure GetCalcType(): Integer
Returns
SetCalcType
procedure SetCalcType(NewCalcType: Enum "Vendor Apply Calculation Type")
Parameters
Events
OnAfterCalcApplnAmount
[IntegrationEvent(True,False)]
local procedure OnAfterCalcApplnAmount(VendorLedgerEntry: Record "Vendor Ledger Entry"; var AppliedAmount: Decimal; var ApplyingAmount: Decimal; CalcType: Enum "Vendor Apply Calculation Type"; var AppliedVendLedgEntry: Record "Vendor Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
OnAfterCalcApplnAmountToApply
[IntegrationEvent(False,False)]
local procedure OnAfterCalcApplnAmountToApply(VendorLedgerEntry: Record "Vendor Ledger Entry"; var ApplnAmountToApply: Decimal; var ApplnAmtToApply: Decimal)
Parameters
OnAfterCalcApplnRemainingAmount
[IntegrationEvent(False,False)]
local procedure OnAfterCalcApplnRemainingAmount(VendorLedgerEntry: Record "Vendor Ledger Entry"; var ApplnRemainingAmount: Decimal)
Parameters
OnAfterExchangeLedgerEntryAmounts
[IntegrationEvent(False,False)]
local procedure OnAfterExchangeLedgerEntryAmounts(var CalcVendorLedgerEntry: Record "Vendor Ledger Entry"; VendorLedgerEntry: Record "Vendor Ledger Entry"; CurrencyCode: Code[10]; PostingDate: Date)
Parameters
OnAfterOpenPage
[IntegrationEvent(False,False)]
local procedure OnAfterOpenPage(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ApplyingVendLedgEntry: Record "Vendor Ledger Entry")
Parameters
OnAfterSetApplyingVendLedgEntry
[IntegrationEvent(True,False)]
local procedure OnAfterSetApplyingVendLedgEntry(var TempApplyingVendorLedgerEntry: Record "Vendor Ledger Entry"; GenJournalLine: Record "Gen. Journal Line"; PurchaseHeader: Record "Purchase Header"; CalcType: Enum "Vendor Apply Calculation Type")
Parameters
OnBeforeCallVendEntrySetApplIDSetApplId
[IntegrationEvent(True,False)]
local procedure OnBeforeCallVendEntrySetApplIDSetApplId(VendEntrySetApplID: Codeunit "Vend. Entry-SetAppl.ID"; var VendorLedgerEntry: Record "Vendor Ledger Entry"; var TempApplyingVendLedgEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)
Parameters
OnBeforeCalcApplnAmount
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcApplnAmount(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line"; PurchaseHeader: Record "Purchase Header"; AppliedVendLedgEntry: Record "Vendor Ledger Entry"; CalcType: Enum "Vendor Apply Calculation Type"; ApplnType: Enum "Vendor Apply-to Type"; var IsHandled: Boolean; ApplnDate: Date; ApplnCurrencyCode: Code[10]; AmountRoundingPrecision: Decimal; var AppliedAmount: Decimal; ApplnRoundingPrecision: Decimal; var PmtDiscAmount: Decimal; var DifferentCurrenciesInAppln: Boolean; var ApplnRounding: Decimal; ApplyingAmount: Decimal)
Parameters
OnBeforeCheckActionPerformed
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckActionPerformed(ActionPerformed: Boolean; OK: Boolean; CalcType: Option; PostingDone: Boolean; ApplyingVendLedgEntry: Record "Vendor Ledger Entry" temporary; ApplnType: Option; var Result: Boolean; var IsHandled: Boolean; AppliesToID: Code[50])
Parameters
OnFindApplyingEntryOnBeforeCalcApplnAmount
[IntegrationEvent(True,False)]
local procedure OnFindApplyingEntryOnBeforeCalcApplnAmount(var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
OnFindApplyingEntryOnBeforeAssignTempApplyingVendLedgEntry
[IntegrationEvent(False,False)]
local procedure OnFindApplyingEntryOnBeforeAssignTempApplyingVendLedgEntry(var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
OnBeforeHandledChosenEntries
[IntegrationEvent(True,False)]
local procedure OnBeforeHandledChosenEntries(Type: Option; CurrentAmount: Decimal; CurrencyCode: Code[10]; PostingDate: Date; var AppliedVendLedgEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PmtDiscAmount: Decimal; var AppliedAmount: Decimal; var DifferentCurrenciesInAppln: Boolean; ApplnCurrencyCode: Code[10]; GenJournalLine2: Record "Gen. Journal Line")
Parameters
OnBeforeEarlierPostingDateError
[IntegrationEvent(False,False)]
local procedure OnBeforeEarlierPostingDateError(ApplyingVendLedgEntry: Record "Vendor Ledger Entry"; VendorLedgerEntry: Record "Vendor Ledger Entry"; var RaiseError: Boolean; CalcType: Option; PmtDiscAmount: Decimal)
Parameters
OnBeforePostDirectApplication
[IntegrationEvent(True,False)]
local procedure OnBeforePostDirectApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; PreviewMode: Boolean; var IsHandled: Boolean; var TempApplyingVendLedgEntry: Record "Vendor Ledger Entry" temporary)
Parameters
OnBeforeSetApplyingVendLedgEntry
[IntegrationEvent(True,False)]
local procedure OnBeforeSetApplyingVendLedgEntry(var ApplyingVendLedgEntry: Record "Vendor Ledger Entry"; GenJournalLine: Record "Gen. Journal Line"; PurchHeader: Record "Purchase Header"; var CalcType: Enum "Vendor Apply Calculation Type"; var IsHandled: Boolean)
Parameters
OnBeforeRunVendEntryEdit
[IntegrationEvent(True,False)]
local procedure OnBeforeRunVendEntryEdit(var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
OnFindApplyingEntryOnAfterSetFilters
[IntegrationEvent(False,False)]
local procedure OnFindApplyingEntryOnAfterSetFilters(ApplyingVendLedgEntry: Record "Vendor Ledger Entry"; var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
OnHandleChosenEntriesOnAfterTempAppliedVendLedgEntryInsert
[IntegrationEvent(True,False)]
local procedure OnHandleChosenEntriesOnAfterTempAppliedVendLedgEntryInsert(var TempAppliedVendorLedgerEntry: Record "Vendor Ledger Entry" temporary)
Parameters
OnPostDirectApplicationBeforeSetValues
[IntegrationEvent(False,False)]
local procedure OnPostDirectApplicationBeforeSetValues(var ApplicationDate: Date)
Parameters
| Name |
Type |
Description |
|
ApplicationDate
|
Date |
|
OnPostDirectApplicationBeforeApply
[IntegrationEvent(False,False)]
local procedure OnPostDirectApplicationBeforeApply(GLSetup: Record "General Ledger Setup"; var NewApplyUnapplyParameters: Record "Apply Unapply Parameters")
Parameters
OnSetApplyingVendLedgEntryOnBeforeCalcTypeDirectCalcApplnAmount
[IntegrationEvent(True,False)]
local procedure OnSetApplyingVendLedgEntryOnBeforeCalcTypeDirectCalcApplnAmount(var ApplyingAmount: Decimal; var ApplyingVendorLedgerEntry: Record "Vendor Ledger Entry"; var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
OnSetVendApplIdOnAfterCheckAgainstApplnCurrency
[IntegrationEvent(False,False)]
local procedure OnSetVendApplIdOnAfterCheckAgainstApplnCurrency(var VendorLedgerEntry: Record "Vendor Ledger Entry"; CalcType: Option; GenJnlLine: Record "Gen. Journal Line"; PurchHeader: Record "Purchase Header"; ApplyingVendLedgEntry: Record "Vendor Ledger Entry")
Parameters
OnAfterSetApplyingVendLedgEntryPurchaseHeader
[IntegrationEvent(False,False)]
local procedure OnAfterSetApplyingVendLedgEntryPurchaseHeader(var TempApplyingVendLedgEntry: Record "Vendor Ledger Entry" temporary; var PurchHeader: Record "Purchase Header")
Parameters
OnAfterSetApplyingVendLedgEntryGenJnlLine
[IntegrationEvent(False,False)]
local procedure OnAfterSetApplyingVendLedgEntryGenJnlLine(var TempApplyingVendLedgEntry: Record "Vendor Ledger Entry" temporary; var GenJnlLine: Record "Gen. Journal Line")
Parameters
OnCheckVendLedgEntryOnBeforeCheckAgainstApplnCurrency
[IntegrationEvent(False,False)]
local procedure OnCheckVendLedgEntryOnBeforeCheckAgainstApplnCurrency(var GenJournalLine: Record "Gen. Journal Line"; VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
OnCheckVendLedgEntryOnAfterEarlierPostingDateTest
[IntegrationEvent(False,False)]
local procedure OnCheckVendLedgEntryOnAfterEarlierPostingDateTest(ApplyingVendorLedgerEntry: Record "Vendor Ledger Entry"; VendorLedgerEntry: Record "Vendor Ledger Entry"; CalcType: Enum "Vendor Apply Calculation Type"; var OK: Boolean)
Parameters
OnQueryClosePageOnAfterEarlierPostingDateTest
[IntegrationEvent(False,False)]
local procedure OnQueryClosePageOnAfterEarlierPostingDateTest(ApplyingVendorLedgerEntry: Record "Vendor Ledger Entry"; VendorLedgerEntry: Record "Vendor Ledger Entry"; CalcType: Enum "Vendor Apply Calculation Type"; var OK: Boolean)
Parameters
OnCalcApplnAmountOnAfterAppliedVendLedgEntrySetFilter
[IntegrationEvent(False,False)]
local procedure OnCalcApplnAmountOnAfterAppliedVendLedgEntrySetFilter(var AppliedVendorLedgerEntry: Record "Vendor Ledger Entry"; VendorLedgerEntry: Record "Vendor Ledger Entry"; var RecVendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
OnSetVendApplIdOnAfterSetFilter
[IntegrationEvent(False,False)]
local procedure OnSetVendApplIdOnAfterSetFilter(var RecVendorLedgerEntry: Record "Vendor Ledger Entry"; CurrentRec: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry"; var TempApplyingVendorLedgerEntry: Record "Vendor Ledger Entry" temporary)
Parameters
OnModifyRecordOnBeforeRunCodeunitVendEntryEdit
[IntegrationEvent(False,False)]
local procedure OnModifyRecordOnBeforeRunCodeunitVendEntryEdit(VendorApplyCalculationType: Enum "Vendor Apply Calculation Type"; var VendorLedgerEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)
Parameters
OnBeforeOnQueryClosePage
[IntegrationEvent(False,False)]
local procedure OnBeforeOnQueryClosePage(CloseAction: Action; ApplyingVendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnType: Enum "Vendor Apply-to Type"; VendorLedgerEntry: Record "Vendor Ledger Entry"; CalcType: Enum "Vendor Apply Calculation Type"; var IsHandled: Boolean)
Parameters
OnPostDirectApplicationOnBeforeCheckApplicationDate
[IntegrationEvent(True,False)]
local procedure OnPostDirectApplicationOnBeforeCheckApplicationDate(VendorLedgerEntry: Record "Vendor Ledger Entry"; NewApplyUnapplyParameters: Record "Apply Unapply Parameters"; ApplicationDate: Date; PreviewMode: Boolean; var IsHandled: Boolean)
Parameters
OnExchangeLedgerEntryAmountsOnBeforeCalculateAmounts
[IntegrationEvent(False,False)]
local procedure OnExchangeLedgerEntryAmountsOnBeforeCalculateAmounts(var CalcVendLedgEntry: Record "Vendor Ledger Entry"; VendLedgEntry: Record "Vendor Ledger Entry"; CurrencyCode: Code[10]; CalculateCurrency: Boolean; var IsHandled: Boolean)
Parameters
OnPostDirectApplicationOnAfterApply
[IntegrationEvent(False,False)]
local procedure OnPostDirectApplicationOnAfterApply(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var NewApplyUnapplyParameters: Record "Apply Unapply Parameters"; PreviewMode: Boolean; Applied: Boolean)
Parameters
See also