Display previous schedule in OTS

The OTS edit screen can display schedule information preceding the OTS start date. This is useful if customers require schedulers to know what shifts employees are assigned to immediately before the OTS schedule period. The number of days of schedule information before the OTS start date to display is specified using the /system/modules/emvs/mr_ots/OTS_NUM_PREV_DAYS registry parameter.

When this is enabled, each row contains the previous schedule for the assigned employee to the left of the first day in the OTS schedule period. The previous schedule displays shifts or leaves created in any other part of the application, including from previous OTS schedule periods. The previous schedule is read-only in the OTS edit screen. Shifts from the previous schedule are excluded from the calculations for key performance indicators displayed in the Details panel.

Displaying the previous schedule provides visibility into the supporting schedule information used in schedule compliance validation. When validating an OTS, shifts before the OTS start date are considered as non-OTS shifts for schedule compliance purposes. Schedule compliance issues are detected when they are a result of the combination of the OTS schedule with the prior schedule. For example, an issue would be detected if there are not enough rest hours between the shift on the first day of the OTS and shift on the day before the OTS start date. Shifts in the previous schedule are not checked for rules that only apply to the shift by itself, such as the Maximum Hours Per Shift rule.