Can anyone help me on this issue..???
The req is like this...
leave rule is like this:
every employee is eligible for 12 CL, 12 SL and 12 PL in a calendar year i.e Jan to Dec which in turn is one leave in one month of his service.
but if an employee joins on 1st to 10th he should be given 1 day leave as per accrual
if he joins between 11th and 20th 0.5 day to be given in the joining month.and from next month onwards it is same i.e 1 leave for one month
that means for example if an employee joins on 15th july he shd be given 5.5 days as CL in an year.
again if an employee joins between 21st to 31st he shd not be given any quota.
issues is with half the quota.
HOW TO GENERATE?