I want to mark the off days as absent if the leaves are sandwiched
eg: consider off days (example saturday and sunday) as absent days when day before and after off days is absent.
example:
23-Nov | "Absent"
24-Nov | "Off Day"
25-Nov | "Off Day"
26-Nov | "Absent"
Output required.
23-Nov | "Absent"
24-Nov | "Absent"
25-Nov | "Absent"
26-Nov | "Absent"
I can't fix it to Saturday or sunday because the off days are not the same for all it could be on Mondays & Tuesdays or through out the week. I have the "shiftId" that is '1' for the "off day"