Home      Ask a Question      My Stuff      Help   
  
TimeWorks Plus - Accrue Down Multiple Categories
This documents the process for accruing down multiple categories.

For example if employees accrued Sick and Vacation and the employee uses up all their accrued Sick and per policy they must use their Vacation, we can have the system do this automatically by adjusting the way the accrue down script works.


if(reportingdate.date >= "2014-01-02" and category = "Sick")
{
$shortfall = accruedown("Sick", hours, 0);
$shortfall = accruedown("Vacation", $shortfall, 0);
unpay($shortfall);
}

Broken down this means:

-- If it is the start or greater of your accruals policy, in this case 1/2/2014 and the category is "Sick":


if(reportingdate.date >= "2014-01-02" and category = "Sick")
{


-- If they use accrued "Sick" hours accrue down the hours till it hits 0 (zero):


$shortfall = accruedown("Sick", hours, 0);


-- If it does hit 0 (zero) then start accruing down "Vacation" hours till it hits 0 (zero):


$shortfall = accruedown("Vacation", $shortfall, 0);


-- If "Vacation" hits 0 (zero) allow them to take time off as "unpaid" time off:


unpay($shortfall);
}
ID
1273
Category
>Support
  Accruals
Date Created
8/18/2014 8:01:57 AM
Date Updated
8/13/2015 1:39:55 PM
Back to Search Results