Home      Ask a Question      My Stuff      Help   
  
Scripting - Assigning a Payrate to a Category
Question
ID
368
Category
<Unassigned>
Date Created
3/10/2009 9:02:01 AM
Date Updated
8/12/2015 11:40:02 AM
We want to create a category that will take the default to payrate2 or add a differential to the default payrate if they are in that category. Can this be done?
Answer
Yes, to do this we would first need to create the category by using this article How To - Adding a New Pay Category / Job Code. For our example we will use "Alt Payrate".

For changing the default to 'Payrate 2' in Employee Setup we would then create a script like the below:

if (category = "Alt Payrate")
{
payrate = payrate2;
}

NOTE: The same script could be used in TimeWorksPlus, but you would need to refer to pay rates in Employee Setup with the prefix "employee.". So instead of "payrate2", use "employee.payrate2".

For adding a differential to the 'Default Payrate' in Employee Setup we would create a script like the below using the differential of payrate x 1.5:

if (category = "Alt Payrate")
{
payrate = payrate * 1.5;
}


Back to Search Results