KVSPSATaskLinkManagement#
Procedures#
CalculateLinkedTasksForJobPSPLine(Record KVSPSAJobPSPLine) :#
Summary: Calculates and updates the linked tasks (predecessors and successors) for a Job PSP Line. This procedure fills both source and target task links at PSP and Budget level.
procedure CalculateLinkedTasksForJobPSPLine(var JobPSPLine: Record "KVSPSAJobPSPLine"):
Parameters:
JobPSPLine: The Job PSP Line record for which linked tasks should be calculated.
IsHoliday(Date, Code[10]) : Boolean#
Summary: This procedure checks if a given date is a holiday based on the specified calendar code.
procedure IsHoliday(Date: Date; CalendarCode: Code[10]): Boolean
Parameters:
Date: Date used for checking if it is a holiday.CalendarCode: Code used for identifying the calendar.
Returns: Return true if the date is a holiday; otherwise, false.
Events#
KVSPSAOnBeforeHandleDates(Option, Date, Date, Integer, Code[10], Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeHandleDates(var Type: Option; var StartingDate: Date; var EndingDate: Date; var Duration: Integer; CalendarCode: Code[10]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSATaskLinkManagement", 'KVSPSAOnBeforeHandleDates', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeHandleDates(var Type: Option; var StartingDate: Date; var EndingDate: Date; var Duration: Integer; CalendarCode: Code[10]; var IsHandled: Boolean)
begin
end;
KVSPSAOnBeforeHandleStartEndDurationDataBudget(Record KVSPSA Job Budget Line, Boolean) :#
Summary: Integration event raised before handling start and end duration data for a budget line.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeHandleStartEndDurationDataBudget(var JobBudgetLine: Record "KVSPSA Job Budget Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSATaskLinkManagement", 'KVSPSAOnBeforeHandleStartEndDurationDataBudget', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeHandleStartEndDurationDataBudget(var JobBudgetLine: Record "KVSPSA Job Budget Line"; var IsHandled: Boolean)
begin
end;
Parameters:
JobBudgetLine: The job budget line record.IsHandled: Set to true to skip the standard handling of start and end duration data.