Home      Ask a Question      My Stuff      Help   
  
Accruals - Allowing Employees to Carry a Negative Accruals Balance
Some employers allow employees to go into the negative with their accrued time. To allow for this you would enter in the negative number with quotations around it in your accrue down script. For example:

$shortfall = accruedown(category, hours, "-40");

The above allows an employee to go into the negative by 40 hours for a referenced accrue able category.


Here is another example of a completed script including the above "$shortfall" line:


if(reportingdate.date >= "2014-08-03" and category = "Vacation"){
$shortfall = accruedown(category, hours, "-40");
unpay($shortfall);
}


This states that if the current date is 8/30/2014 or greater allow "Vacation" to accrue down (when they take time off) to a negative 40 hours balance. After this all time will be unpaid.


ID
1439
Category
>Support
  Accruals
Date Created
1/27/2015 10:58:26 AM
Date Updated
1/28/2015 1:51:35 PM
Back to Search Results