Home      Ask a Question      My Stuff      Help   
  
TimeWorks Plus: Split After a Set Amount of Hours Worked
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.
ID
1090
Category
<Unassigned>
Date Created
1/27/2014 1:57:57 PM
Date Updated
10/27/2015 2:18:48 PM
Back to Search Results