KVSPSAPostPaymentDiscountToJob#
Events#
KVSPSAOnAfterTransferRelevantPostingFieldsInSalesLineFields(Enum KVSPSAPostPmntDiscToJobDocType, Record Sales Invoice Line, Record Purch. Inv. Line, Record Purch. Cr. Memo Line, Record Job Ledger Entry) :#
Summary: Event triggered after transferring relevant posting fields from various invoice/credit memo lines to sales invoice line during payment discount processing. Allows subscribers to perform additional field transfers or modifications after the standard field transfer logic has completed.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterTransferRelevantPostingFieldsInSalesLineFields(DocumentType: Enum "KVSPSAPostPmntDiscToJobDocType"; var SalesInvoiceLine: Record "Sales Invoice Line"; PurchInvLine: Record "Purch. Inv. Line"; PurchCrMemoLine: Record "Purch. Cr. Memo Line"; JobLedgerEntry: Record "Job Ledger Entry"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAPostPaymentDiscountToJob", 'KVSPSAOnAfterTransferRelevantPostingFieldsInSalesLineFields', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterTransferRelevantPostingFieldsInSalesLineFields(DocumentType: Enum "KVSPSAPostPmntDiscToJobDocType"; var SalesInvoiceLine: Record "Sales Invoice Line"; PurchInvLine: Record "Purch. Inv. Line"; PurchCrMemoLine: Record "Purch. Cr. Memo Line"; JobLedgerEntry: Record "Job Ledger Entry")
begin
end;
Parameters:
DocumentType
: The document type enum indicating the source of the posting fields (invoice, credit memo, etc.).SalesInvoiceLine
: The sales invoice line record that received the transferred fields and can be further modified.PurchInvLine
: The purchase invoice line record that may have been used as a source for field transfers.PurchCrMemoLine
: The purchase credit memo line record that may have been used as a source for field transfers.JobLedgerEntry
: The job ledger entry record providing context for the payment discount processing.
KVSPSAOnBeforeModifyTempGenJournalLine(Record Gen. Journal Line, Record Gen. Journal Line, Record Sales Invoice Header, Record Sales Invoice Line, Enum KVSPSAPostPmntDiscToJobDocType) :#
Summary: Event triggered before modifying the temporary general journal line during payment discount to job processing. Allows subscribers to customize the journal line before it is saved for payment discount posting to job.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeModifyTempGenJournalLine(GenJournalLine: Record "Gen. Journal Line"; var TempGenJournalLine: Record "Gen. Journal Line" temporary; var TempSalesInvoiceHeader: Record "Sales Invoice Header" temporary; var TempSalesInvoiceLine: Record "Sales Invoice Line" temporary; DocumentType: Enum "KVSPSAPostPmntDiscToJobDocType"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAPostPaymentDiscountToJob", 'KVSPSAOnBeforeModifyTempGenJournalLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeModifyTempGenJournalLine(GenJournalLine: Record "Gen. Journal Line"; var TempGenJournalLine: Record "Gen. Journal Line" temporary; var TempSalesInvoiceHeader: Record "Sales Invoice Header" temporary; var TempSalesInvoiceLine: Record "Sales Invoice Line" temporary; DocumentType: Enum "KVSPSAPostPmntDiscToJobDocType")
begin
end;
Parameters:
GenJournalLine
: The source general journal line providing base values for the payment discount processing.TempGenJournalLine
: The temporary general journal line that will be modified and can be customized by subscribers.TempSalesInvoiceHeader
: The temporary sales invoice header providing context for the payment discount processing.TempSalesInvoiceLine
: The temporary sales invoice line providing detailed context for the payment discount processing.DocumentType
: The document type enum indicating the type of document being processed for payment discount.