Home      Ask a Question      My Stuff      Help   
  
Scripting - Payrates and Departments in TimeWorks Plus
In TimeWorks Plus you can tie payrates from the employee set up with departments from the employee set up or with entries made at a clock prompt.

NOTE: The same scripting could be used in TimeWorks, but the way you refer to Employee Setup fields would be different. For instance, in TimeWorks, use "Home3" instead of "employee.home3". Use "payrate1" instead of "employee.payrate1". Also, clock prompts would need to be altered since TimeWorks only recognizes the letter ID of a prompt (X, Y, Z).

To enter a payrate script in TimeWorks Plus you will go to the accountant menu > processing rules > in the search for a rule field you will type payratescript and hit search. You will then click on the link for 'payratescript' and add your script to the large text box.

This is used for employees who may have one or more payrates depending on the department or shift they are working.

- Here is an example of a script that ties a payrate with what is in place in the department field of the employee set up. You can use the department, location, supervisor, title or any of the home fields with this script.

if(employee.department="1")
{
category="Front Desk";
payrate=employee.payrate0;
}

In this script I have used category=Front Desk which changes the hour type from Regular to Front Desk

With this script you will need to be sure that "Front Desk" is added as a punch category from the accountant menu > processing rules > punchcategories. The line for payrate=employee.payrate0 is referencing the default payrate from the employee set up. You would use employee.payrate1 to access the payrate 1 field and employee.payrate2 to access the payrate 2 field, etc.

** You will set the amount of payrate fields you would like present by going to accountant menu > processing rules > type payrates in the search for a rule field. Once you click on the link for 'payrates' you will be able to designate how many rate fields will populate in the employee set up, up to nine rates.

- Here is an example of a script you would use to tie a rate with clock prompt entry

if(EnterJob="1")
{
EnterJob="Front Desk";
payrate=employee.payrate1;
}

In this example I am using EnterJob=Front Desk which keeps the hour type as Regular and just associated Front Desk with the punch.

EnterJob is the name of the prompt. In TimeWorks Plus, any time you are scripting for a prompt you will use the name that you have designated in the field name of the clock prompt set up.

If the employee enters 1 at the clock prompt, the timecard will reflect Front Desk and the rate from the payrate 1 field in the employee set up will be assigned.


Another way to do it is to simply put the name of the job in a home field and put the rate into the pay rate field that matches the home field. For instance, you could put "Front Desk" in the employees home1 and then the rate for that job in the employees payrate1 field. This is useful if there are many differences in the jobs that one employee would work vs jobs another employee would work. From there, you would write the following script:

if(EnterJob = 1){
EnterJob = "Front Desk";
}
if(EnterJob = 2){
EnterJob = "Housekeeping";
}
if(EnterJob = 3){
EnterJob = "Bell Boy";
}

if(EnterJob = employee.home1){
payrate = employee.payrate1;
}
if(EnterJob = employee.home2){
payrate = employee.payrate2;
}
if(EnterJob = employee.home3){
payrate = employee.payrate3;
}

If John only works as Front Desk and Bell Boy then you would put those in his home fields and the rates in the coinciding rate fields. If Jane works all 3 then you would list those for her in the same fashion. When they clock in and choose the job, the first script will change it to the name. The next script will look at the employee setup and match the job entered to the matching home field and then give the rate that coincides with that home field.
ID
1038
Category
<Unassigned>
Date Created
11/26/2013 3:01:11 PM
Date Updated
8/12/2015 11:45:38 AM
Back to Search Results