Home      Ask a Question      My Stuff      Help   
  
Scripting - Is there a way for a Script to Change what Numeric Prompt to use Based on the Department?
Question
ID
434
Category
Training
  FAQ's
Date Created
8/25/2009 2:50:08 PM
Date Updated
9/22/2011 3:02:21 PM
Can I set up a job code clock prompt (x,y,z) and depending on what is entered have it use one of two different numeric prompts for different types of tips?
Answer
Yes this can be done by creating one job code prompt and two numeric prompts and based on the job code prompt we can have it direct which numeric prompt to use with a script.

On the clock prompts we will have one active job code prompt and one active numeric prompt for input at the clock. We will also have another numeric prompt with the 'Data Collection Mode:' set to 'Show online, but do not collect anything' this makes this third prompt enabled but not something the employee will see when at the clock.

For this example we will name our job code prompt "Job" (x) and the first numeric prompt "Tips 1" (i) and our second one "Tips 2" (j). As this is a tips or numeric prompt you would want it to prompt at the out punch once the tips are received.

More information on setting up prompts can be found here How To - Setting Up Clock Prompts.

Next we set up our script. What the script will do is direct their tip totals to either "Tips 1" or "Tips 2" depending on what is entered in the job code prompt. So in out example we will say that if the job code prompt shows an entry (by the employee) of "1" it will default the tip amount to "Tips 1" as it is active as mentioned before so this doesn't need to be scripted but if there is an entry of "2" then route the tips amount to "Tips 2" which we had enabled but not active or seen by the employee at the clock:

if (x = "2")
{
j = i;
i = 0;
}

Attached is a screen shot of this working.




Back to Search Results