Skip to content

KVSPSAJob-Apply Posted Entries#

Procedures#

OnRun#

procedure OnRun(Rec: Record "#437dbf0e84ff417a965ded2bb9650972#Job Ledger Entry")

Events#

KVSPSAOnAfterApply(Record Job Ledger Entry, Boolean) :#

Summary: Event fired after applying posted entries to job ledger entries. Allows extensions to perform additional actions after the application process completes. This event enables custom processing after job ledger entry applications have been posted, including the ability to suppress or customize success messages.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterApply(var JobLedgerEntry: Record "Job Ledger Entry"; var HideMessage: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Apply Posted Entries", 'KVSPSAOnAfterApply', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterApply(var JobLedgerEntry: Record "Job Ledger Entry"; var HideMessage: Boolean)
begin
end;

Parameters:

  • JobLedgerEntry: The job ledger entry that was part of the application process (passed by reference for potential modification).
  • HideMessage: Boolean flag (passed by reference) indicating whether the success message should be hidden from the user.

KVSPSAOnAfterInitNewPostInvLedEntryFromEntryToApply(Record KVSPSAPostedInvoiceLedgerEntry, Record Job Ledger Entry) :#

Summary: Event fired after initializing a new posted invoice ledger entry from an entry to apply. Allows extensions to modify the posted invoice ledger entry before processing. This event enables customization of posted invoice ledger entry initialization during job ledger entry application processes.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterInitNewPostInvLedEntryFromEntryToApply(var PostedInvoiceLedgerEntry: Record "KVSPSAPostedInvoiceLedgerEntry"; var JobLedgerEntry: Record "Job Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Apply Posted Entries", 'KVSPSAOnAfterInitNewPostInvLedEntryFromEntryToApply', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterInitNewPostInvLedEntryFromEntryToApply(var PostedInvoiceLedgerEntry: Record "KVSPSAPostedInvoiceLedgerEntry"; var JobLedgerEntry: Record "Job Ledger Entry")
begin
end;

Parameters:

  • PostedInvoiceLedgerEntry: The posted invoice ledger entry being initialized (passed by reference for modification).
  • JobLedgerEntry: The source job ledger entry from which the posted invoice ledger entry is being initialized (passed by reference for potential modification).

KVSPSAOnBeforeFindSalesCrMeLine(Record Sales Cr.Memo Line, Record Job Ledger Entry) :#

Summary: Event fired before finding sales credit memo lines during job ledger entry application. Allows extensions to modify search criteria or override the search logic. This event enables customization of sales credit memo line lookup when processing job ledger entry applications against credited sales documents.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeFindSalesCrMeLine(var SalesCrMemoLine: Record "Sales Cr.Memo Line"; var JobLedgerEntry: Record "Job Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Apply Posted Entries", 'KVSPSAOnBeforeFindSalesCrMeLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeFindSalesCrMeLine(var SalesCrMemoLine: Record "Sales Cr.Memo Line"; var JobLedgerEntry: Record "Job Ledger Entry")
begin
end;

Parameters:

  • SalesCrMemoLine: The sales credit memo line being searched for (passed by reference for filter modification).
  • JobLedgerEntry: The job ledger entry for which the sales credit memo line is being found (passed by reference for potential modification).

KVSPSAOnBeforeFindSalesInvLine(Record Sales Invoice Line, Record Job Ledger Entry) :#

Summary: Event fired before finding sales invoice lines during job ledger entry application. Allows extensions to modify search criteria or override the search logic. This event enables customization of sales invoice line lookup when processing job ledger entry applications against invoiced sales documents.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeFindSalesInvLine(var SalesInvoiceLine: Record "Sales Invoice Line"; var JobLedgerEntry: Record "Job Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Apply Posted Entries", 'KVSPSAOnBeforeFindSalesInvLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeFindSalesInvLine(var SalesInvoiceLine: Record "Sales Invoice Line"; var JobLedgerEntry: Record "Job Ledger Entry")
begin
end;

Parameters:

  • SalesInvoiceLine: The sales invoice line being searched for (passed by reference for filter modification).
  • JobLedgerEntry: The job ledger entry for which the sales invoice line is being found (passed by reference for potential modification).

KVSPSAOnBeforeStartApply(Record Job Ledger Entry) :#

Summary: Event fired before starting the application process for job ledger entries. Allows extensions to perform pre-application validation or modification. This event enables custom validation and preparation logic before beginning the job ledger entry application process.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeStartApply(var JobLedgerEntry: Record "Job Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Apply Posted Entries", 'KVSPSAOnBeforeStartApply', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeStartApply(var JobLedgerEntry: Record "Job Ledger Entry")
begin
end;

Parameters:

  • JobLedgerEntry: The job ledger entry that is about to be processed for application (passed by reference for modification).