KVSPSATime Sheet Management#
Events#
KVSPSAOnAfterOnCopyPrevTimeSheetLinesOnBeforeCopyLineTimeSheetManagement(Record Time Sheet Line, Record Job, Boolean) :#
Summary: Event triggered after copying previous time sheet lines and before copying the actual line in time sheet management. Allows subscribers to perform additional validation or modifications before the time sheet line is copied.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterOnCopyPrevTimeSheetLinesOnBeforeCopyLineTimeSheetManagement(var TimeSheetLine: Record "Time Sheet Line"; Job: Record "Job"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSATime Sheet Management", 'KVSPSAOnAfterOnCopyPrevTimeSheetLinesOnBeforeCopyLineTimeSheetManagement', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterOnCopyPrevTimeSheetLinesOnBeforeCopyLineTimeSheetManagement(var TimeSheetLine: Record "Time Sheet Line"; Job: Record "Job"; var IsHandled: Boolean)
begin
end;
Parameters:
TimeSheetLine
: The time sheet line that is being processed for copying and can be modified by subscribers.Job
: The job record providing context for the time sheet line copying process.IsHandled
: Boolean flag that subscribers can set to indicate they have handled the copy process and standard processing should be skipped.
KVSPSAOnBeforeCheckPostingInStatus(Record Time Sheet Line, Record Job, Boolean, Boolean) :#
Summary: Event triggered before checking posting status during time sheet management processing. Allows subscribers to customize the posting status validation or skip certain status checks for specific scenarios.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckPostingInStatus(var TimeSheetLine: Record "Time Sheet Line"; Job: Record "Job"; var SkipPostingInQuoteStatusCheck: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSATime Sheet Management", 'KVSPSAOnBeforeCheckPostingInStatus', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCheckPostingInStatus(var TimeSheetLine: Record "Time Sheet Line"; Job: Record "Job"; var SkipPostingInQuoteStatusCheck: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
TimeSheetLine
: The time sheet line being validated for posting status.Job
: The job record providing context for the posting status validation.SkipPostingInQuoteStatusCheck
: Boolean flag that subscribers can set to skip the posting in quote status check.IsHandled
: Boolean flag that subscribers can set to indicate they have handled the status check and standard processing should be skipped.