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. | |