Home      Ask a Question      My Stuff      Help   
  
TimeWorksPlus: Scripting Paid Breaks
This works in TimeWorks Plus against a paid break of 30 minutes as long as they are not out longer than 2 hours (120 minutes).

Both the "paidbreak" (in the example "paidbreak = 30;") (paid break time) and 120 (2 hours as the cut off of how long an employee can be out and the script still work) can be changed to something else if need be. For example they want to only pay up to 20 minutes paid break just change it from "paidbreak = 30;" to "paidbreak = 20;" (no quotes).

==Note: This is only appropriate working off of a single break punch as if they clock OUT then IN again for break multiple times this will run on every break and may not be desired. To see one that runs based on hours in a day see this article TimeWorks Plus: Paid Breaks based Total Hours in the Day.==

You would enter the below script in TimeWorks Plus under Accountant Menu > Processing Rules > PayRateScript:

paidbreak = 30;

if(minutesout > 0 AND minutesout < paidbreak)
{
hours = hours+((((minutesout /60)*1000)\1)/1000);
addalert( cstr (minutesout) + " Min Paid Break");
}

if(minutesout >= paidbreak AND minutesout <240)
{
hours=hours+((((val(paidbreak)/60)*1000)\1)/1000);
addalert(cstr(paidbreak)+ " Min Paid Break");
}
ID
895
Category
<Unassigned>
Date Created
4/15/2013 2:28:17 PM
Date Updated
10/28/2014 10:44:03 AM
Back to Search Results