Home      Ask a Question      My Stuff      Help   
  
Scripting - Making Scripts Recognize or Ignore Punches Manually Added or Edited
Question
ID
115
Category
Training
  FAQ's
Date Created
3/20/2007 10:00:03 AM
Date Updated
12/16/2011 4:30:03 PM
How do I make punches that are manually changed/added be handled or not handled by a script?
Answer
It is possible to check whether or not a punch was edited using the key words INISEDITED and OUTISEDITED.

These keywords allow you to decide how you want those edited punches to be treated. In order for a punch to be considered an edited punch, the TIME has to have been changed, rather than just a category.

Example: If we were using a roundtoschedule script, but we only wanted this to round un-edited punches. The script might look like this:

    if(inisedited = false and outisedited = false)
    {
    roundtoschedule(30,0,0,30);
    }

This script says that if the punch has not been edited, then execute the script, otherwise if either the out or in punches have been edited or added manually ignore the script.

Back to Search Results