Set up maternity, paternity and pilgrimage leave
Special leave is an ordinary leave type with eligibility rules on it. The type says who may take it and how many times in a career. The leave group says how many days.
Before you start
- The rules a type can carry, all checked when leave is saved:
- Gender Eligibility: Male or Female only.
- Marital Status Eligibility: one marital status only.
- Maximum Times In Service: how many leaves of this type in a whole career. Only approved leave counts, not applications still waiting.
- Minimum Service (Months): nothing of this type is granted before the joining date plus that many months.
- The number of days and the law differ by country. Examples only: a maternity leave of 12 to 26 weeks, a paternity leave of a few days, a pilgrimage leave (Hajj in Pakistan) once in service, a waiting period leave for a widow (Iddat in some countries).
Steps
- Open Leave Type and make the type, for example
MATMaternity Leave. - Set Leave Unit to Full Day, and add a Full Day line under Leave Duration Type.
- Tick Paid Leave if the company pays it. Leave it unticked if it is unpaid.
- Set the eligibility: Gender Eligibility Female for maternity, Male for paternity. Maximum Times In Service 1 for a once-in-service pilgrimage leave. Leave the rest blank.
- Save.
- Open Leave Group and add the type to Details on each group that gets it. Pick one way to give the days:
- A standing balance: Quota as the days, Accrual Method Yearly, Carry forward unticked, Encashable unticked. Every eligible person holds the days each year.
- Granted when needed: Quota 0. When someone qualifies, HR adds the days as an Opening line on Employee Leave Entitlement.
- Leave Max Consecutive Days blank on these lines, or the long leave is refused.
- Save.
Check it worked
- A man cannot take a Female-only type: the save is refused with a message about gender.
- A second pilgrimage leave for the same person is refused with a message saying it has already been taken the allowed number of times.
If it goes wrong
- Refused for gender or marital status - the employee's own record on Employee Basic Information is blank or different. Fix his record, not the type.
- The long leave is refused as too many days in a row - Max Consecutive Days is set on the line. Clear it.
- Refused for balance - the line has Quota 0 and nobody granted the days. Add them on Employee Leave Entitlement.
- One maternity leave was entered as two and now the second baby is refused - each leave counts as one time. Count your Maximum Times In Service in leaves, or leave it blank.
- A medical certificate should be required - not supported. The Attachment Required After field is stored but nothing reads it. Make approval the check.
- Leave Category set to Maternity changed nothing - correct. Leave Category is a label. No rule reads it.