Home      Ask a Question      My Stuff      Help   
  
TimeWorksPlus: Scripting - Biweekly Overtime Script
The following script will set the pay period's overtime threshold to 86:

if(reportingdate.date >= (reportingdate.payperiodend - 6)){
ot1threshold = 2000;
$phours = reportingdate.pphours("Regular");
if($phours > 86){
$whours = reportingdate.weekhours("Regular");
ot1threshold = $whours - ($phours - 86);
}
}
else{
ot1threshold = 86;
}

NOTE: This script will NOT work for Semi Monthly, Monthly, or Custom pay periods.
ID
1114
Category
<Unassigned>
Date Created
3/5/2014 9:58:27 AM
Date Updated
9/9/2015 8:33:54 AM
Back to Search Results