The below script allows one to split a punch if they DO NOT clock OUT for breaks after a set total amount of hours worked. In the example it is splitting after 6 hours of total worked time. Note this would need to be added under Settings Menu > Processing Rules > SplitShift
split (dateadd("h",6,intime));
Adjusting it would be just adjust the value of 6 in the script. So for example if you wanted to do 10 you could the script to:
split (dateadd("h",10,intime));
The below script allows one to split a punch even if they clock OUT for breaks after a set total amount of hours worked. In the example it is splitting after 6 hours of total worked time. Note this would need to be added under Settings Menu > Processing Rules > SplitPostReportingDateScript
$hourscheck = 6; $htp = hourstopunch; $hoursinc = $htp + hours;
if ($htp < $hourscheck and $hoursinc > $hourscheck) { $hamt = $hourscheck - $htp; split(dateadd("h",$hamt,intime)); }
To adjust the total amount worked you can change the "6" after "$hourscheck" to any amount and if they work over that amount it will split the time at that amount to another punch. | |