Home      Ask a Question      My Stuff      Help   
  
Scripting - Overtime/Doubletime Threshold
**** Please note instructions are for TimeWorks. TimeWorks Plus variation below. ****

These commands allow for an easy way to set up Overtime and Doubletime rules for clients.

Before using any of the overtime/doubletime Threshold commands, the below command must be entered first or it will default to the normal OT processing (40 hrs. / weekly which happens after all scripts have finished).

otrules="-"

Explanation of commands

Currently there are four known commands. Commands are case sensitive.

* ot1threshold - Can be set for overtime for hours calculated on a weekly basis (currently the default is set to 40 hours).

* ot2threshold - Can be set for doubletime for hours calculated on a weekly basis (currently the default is set to 20000 hours so in effect it is disabled at default).

* ot1daythreshold - Can be set for overtime for hours calculated on a daily basis (currently the default is set to 20000 hours so in effect it is disabled at default).

* ot2daythreshold - Can be set for doubletime for hours calculated on a daily basis (currently the default is set to 20000 hours so in effect it is disabled at default).

Example:

A Client wants employee’s in location 100 to have every hour after 7 hours of work in a day be considered OT (*1.50) and any hours after 10 considered DT (*2). The script will look as follows:

if(location = "100")
{
otrules="-";
ot1daythreshold= "7";
ot2daythreshold = "10";
}

Attached is a screen shot of a test employee that worked a 12 hour shift on 12/17, an 8 hour shift on 12/25 and how the command handles the OT/DT:

Doc1.doc

For strictly double time promotion meaning you don't want to use overtime rules but want to promote to double time after a certain hour increment please use the below article:

Scripting - When Dealing with a Client that Only has Double Time Rules (OTthreshold Scripts)




== TimeWorks Plus ==

In TimeWorksPlus there are a few differences:

1. There are no quotes around the hour values:

ot1daythreshold = 10;

2. These scripts will need to be entered under the Processing Rule "OTThresholdScript".

With that and using our location = "100" example above, it would be this instead:

if(employee.location = "100")
{
ot1daythreshold= 7;
ot2daythreshold = 10;
}

ID
169
Category
>Support
  Overtime
Date Created
1/7/2008 4:25:21 PM
Date Updated
12/9/2014 3:09:03 PM
Back to Search Results