Shift search logic
The Schedule Import Interface checks for an existing shift through these steps:
- Finds all the shifts with the given Sch_Shift_In and Sch_Shift_Out times.
-
Within the shifts found in the previous step:
- If the shifts contain breaks provided in Sch_Break_String, then a shift is found.
- If the shift is not found and if Creates Shift When Not Found is set to TRUE, then a new shift is created with Sch_Shift_In-Sch_Shift_Out format (for example, 10:00-12:00) as the shift name. If a shift already exists with the same name, a sequence number is appended to the generated shift name.
- If the shift is not found and if Creates Shift When Not Found is set to SCHEDULED_TIME, then a shift is not created and a scheduled time override is created for the specified employee.