KVSPSAUpdateAbsencesToResPlan#
Events#
KVSPSAOnAfterCalculateDaysWithCapacity(Record Employee Absence, Integer) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCalculateDaysWithCapacity(EmployeeAbsence: Record "Employee Absence"; var DaysWithCapacity: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdateAbsencesToResPlan", 'KVSPSAOnAfterCalculateDaysWithCapacity', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterCalculateDaysWithCapacity(EmployeeAbsence: Record "Employee Absence"; var DaysWithCapacity: Integer)
begin
end;
KVSPSAOnAfterValidateResourceJobPlanningFields(Record KVSPSAResource-Job Planning, Record Job, Record Cause of Absence, Record Employee Absence) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterValidateResourceJobPlanningFields(var ResourceJobPlanning: Record "KVSPSAResource-Job Planning"; Job: Record "Job"; CauseofAbsence: Record "Cause of Absence"; EmployeeAbsence: Record "Employee Absence"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdateAbsencesToResPlan", 'KVSPSAOnAfterValidateResourceJobPlanningFields', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterValidateResourceJobPlanningFields(var ResourceJobPlanning: Record "KVSPSAResource-Job Planning"; Job: Record "Job"; CauseofAbsence: Record "Cause of Absence"; EmployeeAbsence: Record "Employee Absence")
begin
end;
KVSPSAOnBeforeCheckDistribution(Record Employee Absence, Decimal, Date, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckDistribution(EmployeeAbsence: Record "Employee Absence"; DistributedQuantity: Decimal; ToDate: Date; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdateAbsencesToResPlan", 'KVSPSAOnBeforeCheckDistribution', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCheckDistribution(EmployeeAbsence: Record "Employee Absence"; DistributedQuantity: Decimal; ToDate: Date; var IsHandled: Boolean)
begin
end;
KVSPSAOnBeforeCreateOrUpdateResourcePlanning(Record Employee Absence, Date, Boolean, Decimal) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCreateOrUpdateResourcePlanning(EmployeeAbsence: Record "Employee Absence"; StartDate: Date; var CreatePlanningForDay: Boolean; var QuantityToDistribute: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdateAbsencesToResPlan", 'KVSPSAOnBeforeCreateOrUpdateResourcePlanning', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCreateOrUpdateResourcePlanning(EmployeeAbsence: Record "Employee Absence"; StartDate: Date; var CreatePlanningForDay: Boolean; var QuantityToDistribute: Decimal)
begin
end;
KVSPSAOnBeforeShowMessageNoCapacity(Record Employee Absence, Date, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeShowMessageNoCapacity(EmployeeAbsence: Record "Employee Absence"; ToDate: Date; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdateAbsencesToResPlan", 'KVSPSAOnBeforeShowMessageNoCapacity', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeShowMessageNoCapacity(EmployeeAbsence: Record "Employee Absence"; ToDate: Date; var IsHandled: Boolean)
begin
end;
KVSPSAOnGetReferenceDate(Date, Boolean) :#
Summary: Use KVSPSAOnGetReferenceDate to change the reference date.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnGetReferenceDate(var ReferenceDate: Date; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAUpdateAbsencesToResPlan", 'KVSPSAOnGetReferenceDate', '', false, false)]
local procedure DoSomethingKVSPSAOnGetReferenceDate(var ReferenceDate: Date; var IsHandled: Boolean)
begin
end;
Parameters:
ReferenceDate
: Date from which the employee absences will be transferred to the resource planningIsHandled
: Boolean