Home      Ask a Question      My Stuff      Help   
  
Scripting - Paid Breaks Up to a Daily Allowed Amount and Where an Employee is Required to Clock IN to a "Break" Clock Prompt
The below process allows an employee to be paid up to a certain amount for break time and unpaying the remainder if they go over that amount.

To enable this requires the following:

1. A "Break" labor clock prompt.
2. The "OutPunchCompletion" rule enabled.

In our example we are using .50 (30 minutes) of paid break. We add this value to our initial "$bhours" line. This amount though can be adjusted to any hours decimal you would like to use though.

Also in our example we are using the field name "break" also for the labor prompt along with a prompt list of "Yes" to let us know when they are clocking IN for break time.

$bhours = .50;

if(break = "Yes"){
if(reportingdate.totalhours("Break") >= $bhours){
$bshort = (reportingdate.totalhours("Break") - $bhours);
unpay($bshort);
}
}

In our script if the employee clocks IN to "Break" by selecting "Yes" at the clock prompt the script will calculate the amount of time they are clock IN to break and if they are under our .50 hours threshold validate/pay those hours. If they go over the .50 threshold any time in excess will be unpaid and as such be shown this way on the time card.

Optionally you can also change the break punches to a "Break" category by adding a category of "Break" under PunchCategories and adjusting the script to this:


$bhours = .50;

if(break = "Yes"){
category = "Break";

if(reportingdate.totalhours("Break") >= $bhours){
$bshort = (reportingdate.totalhours("Break") - $bhours);
unpay($bshort);
}
}

In our script if the employee clocks IN to "Break" by selecting "Yes" at the clock prompt the script will first change that punches category to "Break" then calculate the amount of time they are clock IN to break and if they are under our .50 hours threshold validate/pay those hours. If they go over the .50 threshold any time in excess will be unpaid and as such be shown this way on the time card.


Bellow is a screen shot of this working:



ID
1889
Category
>Support
  Scripting
Date Created
8/14/2017 8:22:46 AM
Date Updated
8/14/2017 8:44:33 AM
Back to Search Results