Skip to main content

Attendance, early departure

Set an early departure exception when an OUT punch is earlier than the specified number of minutes before the end of a shift

Details

Rule Type
Time

Execution
After punch

Parameters

NameDataTypeDefaultValueDescription
MinutesEarlyintegerThe number of minutes before the end of a shift to declare a worker as early departed

Decision Tree

Rule processing begins in the cell R1:Level1 and proceeds right/down. Any IF statement which results in a DONE step terminates the rule immediately.

Line#Level1Level2Level3Comment
1Start
2IF(PUNCH_ACTION(Description) != OUT) Only want OUT punches
3DONE
4IF(CALC(scheduled.day) = 0) If no scheduled hours, can't leave early
5DONE
6SET(minearly = TIME_DIFF_MINUTES(EffectiveTime, SCHEDULE(StopTime)))Calculate the number of minutes early; this will return positive if the punch time is before the shift end, or negative if after
7IF(minearly < MinutesEarly) If within the allowed threshold, not an early departure
8DONE
9?Set the Left Early exception on the OUT (LE is the Code from the Exceptions app)
10DONE