Home      Ask a Question      My Stuff      Help   
  
Scripting - Exceptions for Departments (Clock Prompts)
Question
ID
305
Category
Training
  FAQ's
Date Created
9/10/2008 9:01:13 AM
Date Updated
9/9/2011 1:18:43 PM
Is there a way to flag when an employee clocks into a specific department?
Answer
Yes, There is using a script to work off of a clock prompt.

This is most commonly used to track if employee's are clocking into incorrect departments or jobs using the clock prompt so they can eventually be fixed by the supervisor.

Another reason would be to do without using the feature "Require employees to choose an entry from a list?" which will at the clock itself reject any punches but those on the list you specify when setting up the prompt but also has a character (500 character) restriction.

This script will allow the user to enter any number at the prompt but if they enter one that is not in the script it will put a flag next to the punch on the time card and also show the exception on a Summary Report.

The script works in this way. If an employee clocks into the system and if clock prompt "x" (which we are using for our example) does not equal either department "100" or "200" it will show a flag that will when clicked on say "Employee clocked into unrecognized department":

if (x <> "100")
{
if (x <> "200")
{
if (category = "Regular")
{
exception = "Employee clocked into unrecognized department";
}}}

The part in the script 'if (category = "Regular")' is in there since most punches will be directed to this category (Regular). This helps if for some reason time is put in for optional categories such as Holidays, Sick Leave, or Vacation that do not require a department code to be entered.

More departments can be added by just continuing to add the 'if (x <> "")' line from our script and entering the other departments between the quotes (ie. if (x <> "300")) and adding the "{" after the if statements and "}" at the end of the script to open and close that statement.

If you have issues with this please contact support via a Support ticket (e-mail) so we can assist you.

Back to Search Results