Home      Ask a Question      My Stuff      Help   
  
Scripting - Hours
The following example sets pay rate based on the amount of hours worked for that day only.

Below is an example of this script and we will use the default pay rate of $5.00:

if (hours > 8)
{
payrate = payrate * 1.5;
}

In the above example it reads that if the hours on the day are 8 or more the pay rate will be the 'Default Payrate' found in Employee Setup ($5.00) multiplied 1.5 or $7.50 an hour.

Other variables can be used as well (without the quotes):

Less than: '<'
More than: '>'
Equals: '='
Does not equal to: '<>'
More than or equals to: '>='
Less than or equals to: '<='

Alternately you can also make a punch default to an hour increment and overwrite the actually in and out. Below is an example of this:

if (department = "100")
{
hours = 3;
}

In the above it reads if they have 100 in the Department field of Employee Setup then make all punches regardless of an in or out punch an hours only punch of 3 hours.

As mentioned the draw back is that the only way you can see the actual time would be to go to the punch and click the "Edit" link next to it to see the actual punch times or disable the script.


ID
343
Category
Training
  FAQ's
Date Created
1/6/2009 7:36:53 AM
Date Updated
10/6/2011 9:45:02 AM
Back to Search Results