These commands allow for an easy way to set up Overtime and Doubletime rules for clients in TimeWorks Plus.
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). This would need to be in the OTThresholdScript box under > Accountant Menu > Processing Rules > Overtime > OTThresholdScript.
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(employee.location = "100") { otrules(""); ot1daythreshold = "7"; ot2daythreshold = "10"; }
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)
| |