Home      Ask a Question      My Stuff      Help   
  
TWP - Exclude Probationary Employees from Holiday Hours (90 Days of Service)
The following script can be used in TimeWorksPlus to limit Holiday hours to employees that have completed a probationary period, i.e. 90 days of service. It requires the following items to already be configured on the account:

-Designated holidays through the USHolidays or Holiday Configuration rule
-Employees must have a Start Date in Employee Setup
-A holiday rule configured to add Holiday hours to the time card*

The logic of the script checks to see if the day on the time card is a holiday. If it is, and the employee has Holiday hours, it will check if they employee has less than 90 days of service and change the hours to 0.

It goes in the PayRate Script box.

if(reportingdate.isholiday and ishours and category = "Holiday" and employee.daysofservice >90){
hours = 0;}

*Holiday hours can be added to a time card in one of two ways. You can use the TimeWorks Plus: Holiday Rule to add hours when the employee does not work on the holiday or, you can use the Holiday Configuration which not only designates the account holidays but also can add the holiday hours.
ID
1778
Category
>Support
  Timecard
Date Created
1/27/2016 10:02:30 AM
Date Updated
7/3/2018 10:42:16 AM
Back to Search Results