Bombay YMCA - Leave Management Process and Configuration
By Balaji Shinde on March 17, 2025
IntermediateERPNext Leave Process – Complete Guide
The leave management process in ERPNext is tightly integrated with payroll, salary slips, and attendance. Below is a step-by-step breakdown of prerequisites, processes, and linkages to other documents.
1. Prerequisites: Configuration Before Leave Processing
Before running the leave process, the following configurations must be in place:
A. Setup Leave Types
- Go to: HR → Leave and Attendance → Leave Type
- Create different leave types (e.g., Sick Leave, Casual Leave, Earned Leave, Maternity Leave).
- Configure:
- Whether leave is paid/unpaid.
- Whether leave is carried forward.
- Leave encashment eligibility.
- Whether leave needs approval.
B. Configure Leave Policy
- Go to: HR → Leave and Attendance → Leave Policy
- Define rules for each leave type:
- How many days an employee is eligible for.
- Carry-forward rules.
- Leave without pay deductions.
C. Assign Leave Policy to Employees
- Go to: HR → Leave and Attendance → Leave Policy Assignment
- Assign policies to specific employees or employee groups.
D. Define Holiday List
- Go to: HR → Leave and Attendance → Holiday List
- Define official holidays that are auto-excluded from leave calculations.
E. Set Up Leave Approval Workflow (Optional)
- Go to: HR → Leave and Attendance → Leave Application
- Configure approval workflows if required.
F. Payroll and Salary Structure Configuration
- Ensure salary components are set up properly:
- Leave Without Pay (LWP) deduction.
- Leave encashment rules.
- Go to: HR → Payroll → Salary Structure
- Assign salary structures to employees, ensuring the following salary components exist:
- Leave Without Pay: Deduct salary based on unpaid leave.
- Leave Encashment: If encashment is enabled, configure encashment rules.
2. Step-by-Step Leave Processing in ERPNext
Step 1: Leave Application Submission
- Go to: HR → Leave and Attendance → Leave Application
- Employee submits a leave application, selecting:
- Leave Type
- From and To Dates
- Reason for leave
- The system calculates:
- Leave balance
- Paid/unpaid status
- Application goes for approval (if workflow is enabled).
Step 2: Leave Approval/Rejection
- Approver receives notification.
- Approver can either:
- Approve: The leave is recorded in the system.
- Reject: The employee must resubmit if needed.
- If approved, leave gets reflected in Employee Attendance & Leave Ledger.
Step 3: Impact on Attendance
- Go to: HR → Leave and Attendance → Attendance
- If leave is approved, an auto-entry is made in attendance records.
- If an employee is on Leave Without Pay (LWP), it reflects in payroll processing.
Step 4: Linkage to Payroll & Salary Slip
- Go to: HR → Payroll → Process Payroll
- During payroll processing:
- The system checks Leave Without Pay (LWP) and deducts salary accordingly.
- Leave Encashment (if applicable) is added as earnings.
- If an employee has taken unpaid leave:
- The salary slip will show a deduction in the Leave Without Pay (LWP) section.
- Go to: HR → Payroll → Salary Slip
- The salary slip reflects:
- Days Present
- Days Absent
- LWP Deduction
- Leave Encashment (if applicable)
3. Linkages of Leave Process to Other Documents
| Process | Linked Documents |
| Leave Application | Employee, Leave Ledger, Attendance |
| Leave Approval | Attendance, Leave Ledger |
| Attendance Record | Salary Slip, Payroll |
| Payroll Processing | Salary Structure, Leave Without Pay (LWP), Leave Encashment |
| Salary Slip | Payslip, Earnings/Deductions, Leave Records |
4. Special Cases
A. Leave Encashment
- If an employee encashes leave, the amount is calculated based on salary structure rules.
- Reflected as Earnings in the Salary Slip.
B. Half-Day & Short Leaves
- Can be configured in Leave Types.
- Does not impact payroll unless defined in the salary structure.
C. Carry Forward Leave
- If configured, unused leaves from one year are added to the next year's leave balance.
Was this article helpful?
More articles on HR - Leave Application