Home      Ask a Question      My Stuff      Help   
  
Add a Weekly/Pay Period Reimbursement to an Employee's Timecard
This article will explain how a dollar amount reimbursement can be added on a weekly or per pay period basis using scripting and a numeric clock prompt. For example, if employees have a standard amount they earn for using a personal cell phone for work purposes or perhaps cleaning their uniform, this script will automate, on the last punch of the week, a dollar amount that can be reported in the same was as tips.

This script will only work in TimeWorksPlus and goes in the PayRate Script box. It will not work in TimeWorks.

The first thing needed will be a numeric clock prompt (not a labor prompt) to hold the information. This clock prompt would be set to "View Online Only" since it is not something the employee enters at the clock, instead, it's being added to their time card through a script. For the purposes of this explanation, we'll call this prompt "Remibursement" as the Field Name.

Next will be the script that sets the value of this prompt on the last punch of the period. There are two scripting keywords you could use here to choose how frequently this reimbursement is paid. If it's weekly, you would use "reportingdate.islastpunchweek". If it is paid per pay period, you could use "reportingdate.islastpunchpp".

if(istimes and reportingdate.islastpunchpp){Reimbursement = 15;}

By putting this script in the PayRate Script, $15 will be added to whatever is the last punchset of the pay period. Keep in mind, as the employee clocks in and out throughout the pay period, this reimbursement will just keep moving down to whatever is the latest punchset.

If you wanted to apply this script to only select employees, you could add an Employee Setup field indicator to the if statement such as:

if(istimes and reportingdate.islastpunchpp and employee.department = "Sales"){Reimbursement = 15;}

In this case, the reimbursement only applies to employees in the Sales department.



ID
1536
Category
>Support
  Scripting
Date Created
5/18/2015 11:48:51 AM
Date Updated
5/18/2015 12:04:58 PM
Back to Search Results