Shift search logic

To check for an existing shift, the Shift Pattern Import Interface:

  1. Finds all the shifts with the given Sch_Start_End_Time times.
  2. 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, a new shift with the start time-end time format (for example, 10:00-12:00) is created.
    • If a shift exists with the same name, a sequence number is appended to the generated shift name (see Shift name).
Note: For the Sch_Start_End_Time column, the OFF keyword is used to denote that the day is not scheduled. In this case, the Sch_Break_String and Shftpat_Labor_String columns are ignored and the standard OFF shift is assigned for this day of the shift pattern.