Home      Ask a Question      My Stuff      Help   
  
TimeWorks Plus Scripting - Adding Holiday Hours with Holiday Worked Hours
The "HolidayRule" Processing Rule allows one to add paid Holiday hours to a time card. Unfortunately if the employee also works that holiday the rule defaults to the worked hours and does not auto add hours to the time card.

In cases where clients want both (Auto added Holiday Hours and Holiday Worked Hours) you will need to add the below scripting in the areas marked by a "//" and not enable the "HolidayRule":

//Add to "AddEntryScript" Processing Rule:

if (reportingdate.isholiday)
{
addentry("hours", 8, "Holiday");
}

What these scripts do is it looks for a day flagged as a holiday per the "HolidayConfiguration". If it sees that it is a holiday then it will add 8 hours of holiday regardless of if there are punches times as well.
ID
1253
Category
<Unassigned>
Date Created
7/16/2014 9:25:57 AM
Date Updated
9/30/2016 12:16:36 PM
Back to Search Results