KVSPSAJob Jnl.-Check Line#
Events#
KVSPSAOnBeforeCheckCorrectionForJobJournalLine(Record Job Journal Line, Boolean) :#
Summary: Event fired before checking correction validation for a job journal line. Allows extensions to override or customize correction validation logic. This event enables custom validation when processing corrective job journal entries, particularly for checking invoice status and corrected entry availability.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckCorrectionForJobJournalLine(var JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob Jnl.-Check Line", 'KVSPSAOnBeforeCheckCorrectionForJobJournalLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCheckCorrectionForJobJournalLine(var JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean)
begin
end;
Parameters:
JobJournalLine
: The job journal line being validated for correction (passed by reference for potential modification).IsHandled
: Boolean flag (passed by reference) indicating whether the event subscriber has handled the correction check and standard validation should be bypassed.
KVSPSAOnBeforeCheckJobStatus(Record Job Journal Line, Record Job, Boolean) :#
Summary: Event fired before checking job status validation during job journal line processing. Allows extensions to override or customize job status validation logic. This event enables custom validation of job status requirements, including support for posting in Quote status when job quote posting is activated.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckJobStatus(JobJournalLine: Record "Job Journal Line"; Job: Record "Job"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob Jnl.-Check Line", 'KVSPSAOnBeforeCheckJobStatus', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCheckJobStatus(JobJournalLine: Record "Job Journal Line"; Job: Record "Job"; var IsHandled: Boolean)
begin
end;
Parameters:
JobJournalLine
: The job journal line being validated for job status requirements.Job
: The job record associated with the journal line being validated for status.IsHandled
: Boolean flag (passed by reference) indicating whether the event subscriber has handled the job status check and standard validation should be bypassed.
KVSPSAOnBeforeCheckWorkPackageAndPSPLineForJobJournalLine(Record Job Journal Line, Record Job, Boolean) :#
Summary: Event fired before checking work package and PSP line validation for a job journal line. Allows extensions to override or customize work package validation logic. This event enables custom validation of work package codes, phase codes, task codes, step codes, and their corresponding PSP line requirements during job journal processing.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckWorkPackageAndPSPLineForJobJournalLine(var JobJournalLine: Record "Job Journal Line"; var Job: Record "Job"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob Jnl.-Check Line", 'KVSPSAOnBeforeCheckWorkPackageAndPSPLineForJobJournalLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCheckWorkPackageAndPSPLineForJobJournalLine(var JobJournalLine: Record "Job Journal Line"; var Job: Record "Job"; var IsHandled: Boolean)
begin
end;
Parameters:
JobJournalLine
: The job journal line being validated for work package and PSP line requirements (passed by reference for potential modification).Job
: The job record associated with the journal line (passed by reference) being validated for PSP line structure.IsHandled
: Boolean flag (passed by reference) indicating whether the event subscriber has handled the work package validation and standard logic should be bypassed.
KVSPSAOnBeforeTestJobJnlLine(Record Job Journal Line, Boolean) :#
Summary: Event fired before performing comprehensive job journal line testing and validation. Allows extensions to override or customize the complete job journal line validation process. This event enables custom validation logic for all job journal line fields and business rules, including job number, resource number, posting date, quantity, and work package structure validation.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeTestJobJnlLine(JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob Jnl.-Check Line", 'KVSPSAOnBeforeTestJobJnlLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeTestJobJnlLine(JobJournalLine: Record "Job Journal Line"; var IsHandled: Boolean)
begin
end;
Parameters:
JobJournalLine
: The job journal line being comprehensively tested and validated.IsHandled
: Boolean flag (passed by reference) indicating whether the event subscriber has handled the complete job journal line testing and standard validation should be bypassed.