Home      Ask a Question      My Stuff      Help   
  
Scripting - 'inisedited' and 'outisedited' Scripts
These scripts either activate or ignore processes based on if the punch (either an in or out or both) was added/edited manually (through the website) or if it was a true punch or in other words a punch that was added via a TimeClock,FlexClock,VoiceClock, or the WebClock.

This becomes useful when you have rules in place for a true punch that you don't want to come into play for a manually added punch like for example a punch for Vacation, Sick, or Unpaid Time Off. It also work with rounding rules.

Below we will go through a few examples.

1. The below states that if either an in or an out punch is edited then the pay rate should be paid at 0.00. This would be used in the case of maybe hours entered manually for 'Unpaid Time Off':

if (inisedited = true)
{
if (outisedited = true)
{
payrate = 0;
}}

2. Next the below states that if there or no edits to either the in and out punch or that it is a true punch, then the pay rate should be the default one found in Employee Setup:

if (inisedited = false)
{
if (outisedited = false)
{
payrate = payrate;
}}

3. In the following example we check for edits on the IN and OUT punches separately and apply specific rounding rules accordingly. First we check for an edited and then round the IN punch, then we do the same thing for the OUT punch.

if(inisedited = false)
{
roundin("N15");
}

if(outisedited = false)
{
roundout("N15");
}




NOTE: the inisedited and outisedited only works with edited punches that have time additions/changes in them for example adding a 6:00am to 12:00pm punch or changing the in punch from 6:00am to 6:15am. If the punch is entered as an hours only punch then this script will not work and be ignored as there are no manually edited/entered in or out punches.
ID
370
Category
Training
  FAQ's
Date Created
3/11/2009 11:56:40 AM
Date Updated
6/4/2014 4:40:17 PM
Back to Search Results