Leave Type
From 2027, the staff of Nova Industries in Pune earn 18 days of Annual Leave a year, 1.5 days at the end of each month. New joiners can take it after 90 days, and no one can take more than 10 days in a row. At the end of the year, up to 10 unused days move to the next year and lapse after 90 days, and some of the balance can be paid out. HR sets all these rules once, on a leave type called Annual Leave.
A Leave Type is a kind of leave that employees can take, such as Casual Leave or Sick Leave, with the rules for it. You add leave types to a Leave Policy to allocate them, and employees select them in a Leave Application.
Before you begin
- You have the HR User or HR Manager role.
- To pay out unused leave, an earning Salary Component exists, here Leave Encashment.
Frappe HR creates five leave types at install: Casual Leave, Compensatory Off, Sick Leave, Privilege Leave and Leave Without Pay. All five count holidays within leave as leave days. Change this on each type if your company does not count them.
Create a Leave Type
- In the Leaves workspace, select Leave Type under Leave Setup, and select Add Leave Type.
- Enter the Leave Type Name, here Annual Leave. The name is also the record's ID.
- Select the options that apply to this type on the Details tab. Annual Leave uses none of them.

| Option | What it does |
|---|---|
| Is Compensatory | Leave is given through a Compensatory Leave Request for work on a holiday. It cannot also be an earned leave. |
| Is Leave Without Pay | The days are deducted from salary in the Salary Slip. The type needs no allocation, so it is always offered in a Leave Application. |
| Is Partially Paid Leave | Part of the daily salary is paid. Enter the Fraction of Daily Salary per Leave between 0 and 1, for example 0.5 for half pay. A type cannot be both without pay and partially paid. |
| Allow Negative Balance | Employees can apply even when they have no balance left. |
| Allow Over Allocation | An allocation can have more days than the days in its period. |
| Include holidays within leaves as leaves | Holidays between the first and last day of a leave count as leave days. |
| Leave for optional holiday | Employees can take this leave only on the dates in the optional holiday list of the Leave Period. |
Set the limits
On the Limits tab, set the Maximum Leave Allocation Allowed per Leave Period, here 18, the Maximum Consecutive Leaves Allowed, here 10, and Allow Leave Application After (Calendar Days), here 90. A value of 0 means no limit.

| Limit | What happens |
|---|---|
| Maximum Leave Allocation Allowed per Leave Period | A Leave Policy row or a Leave Adjustment above this number is not saved. |
| Maximum Consecutive Leaves Allowed | A Leave Application longer than this is stopped. Open or approved applications of the same type that end the day before or start the day after are counted together with it. |
| Allow Leave Application After (Calendar Days) | The employee can apply only when this many calendar days have passed since their date of joining. |
Carry forward unused leave
Expand Carry Forward and select Carry Forward. Enter the Maximum Carry Forwarded Leaves, here 10, and optionally Expire Carry Forwarded Leaves (Days), here 90. Carried days are added when the next Leave Allocation is created with carry forward, and they expire that many days after the new allocation starts.

Make it an earned leave
Expand Earned Leave and select Is Earned Leave. Select the Earned Leave Frequency, here Monthly, the Allocate on Day, here Last Day, and the Rounding, here 0.5. A daily job adds the leave to each allocation at that frequency, so with 18 days a year, Annual Leave grows by 1.5 days at the end of each month. Date of Joining as the allocation day is offered only for the monthly frequency. The article Earned Leaves explains how the days are worked out.
Allow encashment
Expand Encashment, select Allow Encashment and the Earning Component, here Leave Encashment. Enter the Maximum Encashable Leaves, here 10, and the Non-Encashable Leaves, here 5, which always stay in the balance.

With a balance of 18 days, an employee can encash 18 minus 5, which is 13, capped at 10. A submitted Leave Encashment creates an Additional Salary for the next payroll, or an accounting entry if Pay via Payment Entry is selected on it. Save the leave type.
Troubleshooting
Leave Type can either be compensatory or earned leave
Both Is Compensatory and Is Earned Leave are selected. Compensatory leave is added by Compensatory Leave Request, and earned leave by the daily job, so clear one of them.
Leave Type can either be without pay or partial pay
Both Is Leave Without Pay and Is Partially Paid Leave are selected. Clear one of them.
Leave application is linked with leave allocations
You tried to make a type Leave Without Pay while employees have current allocations of it. Leave without pay needs no allocation, so create a new type for it instead.
Frequently asked questions
What happens when an employee asks for more days in a row than allowed?
The application is stopped with the message Maximum Consecutive Leaves Exceeded. The extra days are not changed to leave without pay, so the employee applies for the extra days with another leave type.
Why does a new earned leave allocation show 0 days?
Earned leave is added over the year by the daily job. An allocation made before its period starts has 0 days. An allocation made later in the period gets the days of the months that have already passed.