Table of Contents

KVSMEDPayerInvoiceMgt

Events

OnGetVATEntryDimensionSetID(Record VAT Entry, Integer) :

Summary: Allows a bridge app to supply the VAT entry's dimension set before reclassification grouping.

[IntegrationEvent(false, false)]
local procedure OnGetVATEntryDimensionSetID(VATEntry: Record "VAT Entry"; var DimensionSetID: Integer): 

Parameters:

  • VATEntry: Payment discount VAT entry used for grouping.
  • DimensionSetID: Dimension set ID from the VAT entry extension. Defaults to zero for each VAT entry.

OnAfterGetPaymentExternalDocumentNo(Record Gen. Journal Line, Code[35]) :

Summary: Raised after the external document no. of the applying payment or refund was determined for a new BSTG payment entry.

[IntegrationEvent(false, false)]
local procedure OnAfterGetPaymentExternalDocumentNo(GenJournalLine: Record "Gen. Journal Line"; var ExternalDocumentNo: Code[35]): 

Parameters:

  • GenJournalLine: Journal line whose posting applies the invoice or credit memo.
  • ExternalDocumentNo: External document no. from the journal line, the payment reconciliation context or the applying entry. Can be changed.

OnBeforeCreateCreditMemoPayerEntry(Record Cust. Ledger Entry, Record Gen. Journal Line, Boolean) :

Summary: Raised before a BSTG payment entry is created for a credit memo that is applied by a payment or refund.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateCreditMemoPayerEntry(var CreditMemoCustLedgerEntry: Record "Cust. Ledger Entry"; GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean): 

Parameters:

  • CreditMemoCustLedgerEntry: Applied credit memo customer ledger entry.
  • GenJournalLine: Journal line of the applying payment or refund.
  • IsHandled: Set to true to skip the creation of the BSTG payment entry.

OnCreateCreditMemoPayerEntryOnBeforeInsert(Record KVSMEDPayerEntry, Record Cust. Ledger Entry, Record Gen. Journal Line, Record KVSMEDPayerInvoice) :

Summary: Raised before the BSTG payment entry of a credit memo is inserted.

[IntegrationEvent(false, false)]
local procedure OnCreateCreditMemoPayerEntryOnBeforeInsert(var KVSMEDPayerEntry: Record "KVSMEDPayerEntry"; CreditMemoCustLedgerEntry: Record "Cust. Ledger Entry"; GenJournalLine: Record "Gen. Journal Line"; KVSMEDPayerInvoice: Record "KVSMEDPayerInvoice"): 

Parameters:

  • KVSMEDPayerEntry: BSTG payment entry with all values assigned. Can be changed.
  • CreditMemoCustLedgerEntry: Applied credit memo customer ledger entry.
  • GenJournalLine: Journal line of the applying payment or refund.
  • KVSMEDPayerInvoice: Active BSTG invoice referenced by the external document no. of the credit memo.

OnAfterCreateCreditMemoPayerEntry(Record KVSMEDPayerEntry, Record Cust. Ledger Entry, Record Gen. Journal Line) :

Summary: Raised after the BSTG payment entry of a credit memo was inserted.

[IntegrationEvent(false, false)]
local procedure OnAfterCreateCreditMemoPayerEntry(var KVSMEDPayerEntry: Record "KVSMEDPayerEntry"; CreditMemoCustLedgerEntry: Record "Cust. Ledger Entry"; GenJournalLine: Record "Gen. Journal Line"): 

Parameters:

  • KVSMEDPayerEntry: Inserted BSTG payment entry.
  • CreditMemoCustLedgerEntry: Applied credit memo customer ledger entry.
  • GenJournalLine: Journal line of the applying payment or refund.