Skip to content

KVSPSAJob-Time Entry-Edit#

Procedures#

OnRun#

procedure OnRun(Rec: Record "KVSPSAJobTimeLedgerEntry")

Events#

KVSPSAOnBeforeJobTimeLedgerEntryModify(Record KVSPSAJobTimeLedgerEntry, Record KVSPSAJobTimeLedgerEntry) :#

Summary: Event triggered before modifying a job time ledger entry during the job time entry edit process. Allows subscribers to perform additional modifications or validations before the job time ledger entry is saved.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeJobTimeLedgerEntryModify(var JobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry"; FromJobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Time Entry-Edit", 'KVSPSAOnBeforeJobTimeLedgerEntryModify', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeJobTimeLedgerEntryModify(var JobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry"; FromJobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry")
begin
end;

Parameters:

  • JobTimeLedgerEntry: The job time ledger entry record that will be modified and can be further customized.
  • FromJobTimeLedgerEntry: The source job time ledger entry record containing the original values.

KVSPSAOnBeforeOnRun(Record KVSPSAJobTimeLedgerEntry, Boolean) :#

Summary: Event triggered before executing the main OnRun logic of the job time entry edit codeunit. Allows subscribers to implement custom job time entry edit logic or skip the standard processing entirely.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeOnRun(var JobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Time Entry-Edit", 'KVSPSAOnBeforeOnRun', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeOnRun(var JobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • JobTimeLedgerEntry: The job time ledger entry record being edited that can be modified by subscribers.
  • IsHandled: Boolean flag that subscribers can set to indicate they have handled the edit process and standard processing should be skipped.