KVSPSAJob-Time Jnl.-Post Line#
Procedures#
OnRun#
procedure OnRun(Rec: Record "KVSPSAJobTimeJournalLine")
Events#
KVSPSAOnAfterPostJobTimeJournalLine(Record KVSPSAJobTimeJournalLine, Record KVSPSAJobTimeLedgerEntry) :#
Summary: Event triggered after posting a job time journal line and creating the corresponding job time ledger entry. Allows subscribers to perform additional processing or logging after the job time posting is completed.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterPostJobTimeJournalLine(var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"; JobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Time Jnl.-Post Line", 'KVSPSAOnAfterPostJobTimeJournalLine', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterPostJobTimeJournalLine(var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"; JobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry")
begin
end;
Parameters:
JobTimeJournalLine
: The job time journal line that was posted and can be referenced for additional processing.JobTimeLedgerEntry
: The job time ledger entry that was created from the journal line posting.
KVSPSAOnBeforePostJobTimeJournalLine(Record KVSPSAJobTimeJournalLine) :#
Summary: Event triggered before posting a job time journal line. Allows subscribers to perform validation or modifications before the job time journal line is processed for posting.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforePostJobTimeJournalLine(var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Time Jnl.-Post Line", 'KVSPSAOnBeforePostJobTimeJournalLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforePostJobTimeJournalLine(var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine")
begin
end;
Parameters:
JobTimeJournalLine
: The job time journal line that will be posted and can be modified by subscribers.
KVSPSAOnBeforeUpdateBudgetLineStatus(Record KVSPSAJobTimeJournalLine, Boolean) :#
Summary: Event triggered before updating budget line status during job time journal line processing. Allows subscribers to implement custom budget line status update logic or skip the standard budget line status update.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpdateBudgetLineStatus(var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob-Time Jnl.-Post Line", 'KVSPSAOnBeforeUpdateBudgetLineStatus', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeUpdateBudgetLineStatus(var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"; var IsHandled: Boolean)
begin
end;
Parameters:
JobTimeJournalLine
: The job time journal line being processed for budget line status updates.IsHandled
: Boolean flag that subscribers can set to indicate they have handled the budget line status update and standard processing should be skipped.