The "Yesterday" Rule will reassign the IN punch to the day prior if it falls within this part of the script "if (intime < 1:00am)". So any in punch on the next day that is less then 1:00am will fall back on to the previous days punches.
An example of the scripting is below.
if (inismissing = false and istimes = true) { if (intime < 1:00am) { yesterday (0); } }
For example you have an employee that works from 11:00pm to 8:00am but he has a lunch at say 2:00am to 3:00am. Without the script what usually happens is that when he clocks out at 2:00am it will be on the same day as his first clock in at 11:00pm. But when he clocks back in at 3:00am it will show his time and punches (3:00am thru 8:00am) on the next day (after midnight).
But if we set the script and use 3:30am as the time like below:
if (inismissing = false and istimes = true) { if (intime < 3:30am) { yesterday (0); } }
Any in time on any day that is less than 3:30am which his clock in from lunch at 3:00am meets the requirement (3:00am < 3:30am) will be pulled back to the preceding day. So this would put it with his first in punch at 11:00pm.
To adjust this you would just change the time in the "if (intime < 3:30am)" part to match a time after the employee usually clocks in the following day after their break/lunch.
NOTE: The "yesterday" script does not work using the OutPunchCompletion feature and will override the punches this feature creates.
|