Home      Ask a Question      My Stuff      Help   
  
Scripting - Splits
Question
ID
110
Category
Training
  FAQ's
Date Created
2/26/2007 3:47:45 PM
Date Updated
8/11/2011 8:36:45 AM
How do I script a split?
Answer
Splits are used to divide certain times which can be used to stop one set of rules and start a new set. For example:

split (6:00am);

This tells the system that if a punch (in to out) crosses 6:00am create another out punch of 6:00am and then a in punch of 6:00am on a separate line to split the time.

This is commonly used in setting up shifts (days, swings, and nights) that have differential pay assigned to it.

Here is an Example:

if (touches (3:30pm, 11:00pm))
{
split (3:30pm);
split (11:00pm);
category = "Swings";
payrate = payrate + .50;
}

This script in conjunction with a touches script (Scripting - Touches) uses splits to set up a separate shift based on punch times (3:30pm-11:00pm), establishes a pay category (Swings) and assigns a pay differential for working in that category of their base pay plus $.50.

Back to Search Results