Home      Ask a Question      My Stuff      Help   
  
TimeWorks/TimeWorks Plus: Scripting - Alternate Payrates
==TimeWorks==

The Scripting process (found in Accountant Menu > Custom Processing / Rounding Rules) offers the ability to change pay rates based on things like identifier fields in Employee Setup (Department, Location, Supervisor, Home 1, 2, and 3) or something entered in at a clock prompt:

An example of this using the Home 1 field in Employee Setup can be found here:

if (home1 = "100")
{
payrate = payrate + 1.00;
}

The above states that if Home 1 equals "100" then give the employee a pay rate of the current pay rate in effect plus $1.00.

Here is an example of a pay rate change based on a clock prompt:

if (x = "100")
{
payrate = payrate2;
}

The above states that if there is an entry at the prompt (x in our example) of "100" then change the pay rate in effect to "Alt Pay Rate 2" in Employee Setup.

You can even us more advanced scripting like the below which takes an entry at our x prompt and matches it up to Home 1, 2 or 3 and if it finds a match changes the pay rates to either "Alt Pay Rate 1", "Alt Pay Rate 2", or "Alt Pay Rate 3".

It also includes an exception stating that if the entry doesn't match any of the Home fields to flag the punch with a message stating that "Employee clocked into unrecognized department":

if (x <> "") {
if (x = home1) { payrate = payrate1; }
if (x = home2) { payrate = payrate2; }
if (x = home3) { payrate = payrate3; }
} else {
exception = "Employee clocked into unrecognized department";
}


==TimeWorks Plus==

The Scripting process (found in Accountant Menu > Processing Rules > PayRateScript) offers the ability to change pay rates based on things like identifier fields in Employee Setup (Department, Location, Supervisor, Home 1, 2, and 3) or something entered in at a clock prompt:

An example of this using the Home 1 field in Employee Setup can be found here:

if (employee.home1 = "100")
{
payrate = payrate + 1.00;
}

The above states that if Home 1 equals "100" then give the employee a pay rate of the current pay rate in effect plus $1.00.

We can also use alternate pay rates based on what an employee selects from a clock prompt.

Please Note: TimeWorks Plus only supports one pay rate filed by default and you will need to add additional pay rate fields like the ones we will be using in our examples below by first enabling the extra filed though Settings Menu > Processing Rules > PayRates.

Here is an example of a pay rate change based on a clock prompt with the Field Name of X_Prompt:

if (X_Prompt = "100")
{
payrate = employee.payrate2;
}

The above states that if there is an entry at the prompt (X_Prompt in our example) of "100" then change the pay rate in effect to "Pay Rate 2" in Employee Setup.

You can even us more advanced scripting like the below which takes an entry at our x prompt and matches it up to Home 1, 2 or 3 and if it finds a match changes the pay rates to either "Pay Rate 1", "Pay Rate 2", or "Pay Rate 3".

It also includes an exception stating that if the entry doesn't match any of the Home fields to flag the punch with a message stating that "Employee clocked into unrecognized department":

if (X_Prompt <> "") {
if (X_Prompt = employee.home1) { payrate = employee.payrate1; }
if (X_Prompt = employee.home2) { payrate = employee.payrate2; }
if (X_Prompt = employee.home3) { payrate = employee.payrate3; }
} else {
addalert("Employee clocked into unrecognized department");
}

ID
133
Category
<Unassigned>
Date Created
5/1/2007 2:54:12 PM
Date Updated
2/9/2015 7:46:07 AM
Back to Search Results