We have a complication when doing the configuration step for the leave type "liue leave".
according to the requirement,
1. Leave quota should be alloacted only if the employee worked in Saturdays or Sundays more than 4 hours.(This part has already implemented through PCR)
2. Leave can be taken only with in one monthe of period from the attendence date.
3. Leave should be get cancled after one month of period.
4. Maximum 2 leaves can be taken for a month.
please help to find a solution to implement this leave type requiremnt in the system.