Home      Ask a Question      My Stuff      Help   
  
TimeWorks/TimeWorks Plus: Scripting - Excluding Pay Codes/Categories from the Export (Download Activity File) (Unpay hours)
Question
ID
366
Category
<Unassigned>
Date Created
3/4/2009 7:58:07 AM
Date Updated
2/4/2016 11:18:23 AM
We are using some categories for reporting purposes only and do not want to include these categories in our export/Download Activity File. Is there a way to remove these categories?
Answer
In TimeWorks you can do this using the following script:

if (category = "Unpaid Time" and downloading = true)
{
hours = 0;
}

In the example above it reads if there are any hours in the "Unpaid Time" category and you are running your export/Download Activity File then change the amount of hours to zero. That way the download file will not include any hours for that category.
______________________________________________________________________________________________________________________

In TimeWorks Plus it is a bit different as there is no "downloading" keyword in TimeWorksPlus. With TimeWorksPlus we can use the "unpay" keyword as in this example:

if (category = "Vacation" OR category = "Sick")
{
unpay(hours);
}

With this the category will come over with a zero hour balance also.

*This script must go in the "PayRateScript" box.

Back to Search Results