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.
| |