Home      Ask a Question      My Stuff      Help   
  
Scripting - Exception
An EXCEPTION is basically a way to "flag" a time card. The exception will be displayed with an exclamation symbol that will display a short description when it is clicked on. The exceptions will also appear on the summary report.

To activate an exception, you will write a script like:

exception = "This is an Exception";

So, if you need to throw an exception on a timecard to flag punches where the employee was late to work, you can add a script like this:

if (istimes = true)
{
if (intime >= 9:01am)
{
exception = "Employee is LATE!" ;
}
}

This tests to see if the employee clocked in later than 9:01am and will populate a yellow diamond on the employee card.

Exceptions can be "approved" by a supervisor (which will stop the exception from appearing on the timecard), there are two steps to activating this feature:

1. In Accountant Menu > Miscellaneous Settings, put a check mark in the box next to 'ExceptionApproved'. This will add the "Exception Approved" check box to the "Punch Edit" screen

2. Add a line to the bottom of the existing script, that turns off the exception, if the Exception Approved box is checked:

if(exceptionapproved){exception = "";}

Note, an exception can show up on your Download Activity File export, depending on your format.
ID
156
Category
Training
  FAQ's
Date Created
8/15/2007 11:45:59 AM
Date Updated
10/21/2011 3:31:38 PM
Back to Search Results