Running Payroll — The Payrun Process
The payrun is the monthly (or periodic) process of calculating employee salaries, applying deductions, accounting for attendance and leave, and generating the payroll records that feed into payslips and bank transfers. It is the core operational workflow of the Payroll module.
This chapter walks through the complete payrun lifecycle — from creating a new payrun to finalizing and approving it.
What You Will Learn
- What a payrun is and the payrun lifecycle
- How to create a new payrun
- How payroll records are generated for each employee
- How to review and adjust individual records
- How attendance, LOP, and reimbursements are factored in
- How to process and approve the payrun
- How payroll rounding works
- How pay schedule settings affect the payrun
- How to view payrun history
Prerequisites
Required: The following must be configured before running payroll:
- Salary components and salary structures (Chapter 26, Chapter 27)
- Employees assigned to salary structures with component amounts
- Attendance data processed for the payroll month (if attendance-based payroll is used)
- Leave data up to date (approved/rejected requests finalized)
- Statutory settings configured (PF, ESI, PT, TDS — see Part 7)
Understanding the Payrun Lifecycle
A payrun in Udyamo HRMS moves through a series of statuses:
| Status | Description |
|---|---|
| Draft | The payrun has been created but payroll records have not yet been generated. |
| Generated | Payroll records have been calculated for all eligible employees. Records are open for review and adjustment. |
| Processed | The payrun has been finalized. Individual records are locked. |
| Approved | The payrun has been approved by an authorized person. Payslips can be generated and bank advice can be exported. |
| Paid | The payrun has been marked as paid after salary disbursement. |
Status Flow
Create Generate Process Approve Mark Paid
| | | | |
v v v v v
Draft -------> Generated ----> Processed ----> Approved ----> Paid
Warning: Once a payrun is moved to Processed status, individual payroll records cannot be edited. Ensure all adjustments are made during the Generated stage.
Navigating to Payruns
To access payruns:
- Click Payroll in the left sidebar.
- Select Payruns (or Run Payroll).
The Payruns page lists all existing payruns with their month, status, and summary statistics.

Step 1: Creating a Payrun
To create a new payrun:
- Navigate to Payroll > Payruns.
- Click Create Payrun (or New Payrun).
- Fill in the payrun details:
| Field | Description | Required |
|---|---|---|
| Month | The payroll month (e.g., January 2026). | Yes |
| Payrun Type | Regular (standard monthly payroll) or other types as configured. | Yes |
- Click Create.
The payrun is created in Draft status.
Tip: Create the payrun after attendance and leave data for the month have been finalized. Running payroll with incomplete attendance data leads to inaccurate LOP calculations and requires corrections later.
Step 2: Generating Payroll Records
Once the payrun is in Draft status:
- Click Generate Payroll (or Calculate).
- The system processes each eligible employee and generates a PayrollRecord containing:
| Field | Description |
|---|---|
| Employee Name | The employee's name |
| Gross Pay | Total earnings before deductions |
| Total Deductions | Sum of all deduction components |
| Net Pay | Gross Pay minus Total Deductions |
| Paid Days | Number of days the employee is paid for |
| LOP Days | Number of Loss of Pay days (unpaid leave, unauthorized absences) |
| Working Days | Total working days in the month |
- The payrun status changes to Generated.
How the System Calculates Each Record
For each employee, the system performs these calculations:
-
Determine working days — Total calendar days minus weekly offs and holidays for the employee's office.
-
Determine paid days — Working days minus LOP days.
-
Calculate pro-rata earnings — If the employee has LOP days or joined/left mid-month:
Pro-rata amount = (Monthly component amount / Working days) x Paid days
-
Calculate percentage-based components — HRA, PF, ESI, etc. are calculated on the pro-rata Basic or Gross as applicable.
-
Apply statutory calculations — PF, ESI, Professional Tax, and TDS are computed based on current rates and the employee's declarations.
-
Sum earnings — Gross Pay = Total of all earning components.
-
Sum deductions — Total Deductions = Total of all deduction components.
-
Calculate net pay — Net Pay = Gross Pay - Total Deductions.

Step 3: Reviewing Employee-Wise Breakdown
After generation, review each employee's payroll record:
- On the payrun page, the list of all employee records is displayed.
- Click on an employee's name to view the detailed breakdown.
- The breakdown shows:
- Each earning component with its calculated amount
- Each deduction component with its calculated amount
- Paid days and LOP days
- Any reimbursements included
- Net pay
Review Checklist
| Check | What to Look For |
|---|---|
| Paid days | Does the paid days count match the expected number? Check against attendance records. |
| LOP days | Are LOP days correctly reflecting unpaid leave and unauthorized absences? |
| Basic Pay | Is Basic Pay pro-rated correctly for LOP or mid-month joiners? |
| PF/ESI | Are statutory deductions calculated on the correct base amount? |
| Net pay | Does the net pay look reasonable compared to previous months? |
| New joiners | Are mid-month joiners receiving pro-rata salary correctly? |
| Exits | Are employees who left mid-month receiving pro-rata salary for their worked days? |
Tip: Sort the records by Net Pay (ascending) to quickly spot outliers — employees with unusually low or zero net pay may have data issues that need attention.
Step 4: Adjusting Individual Records
During the Generated stage, you can make adjustments:
Skip Payroll
To exclude an employee from the current payrun:
- Open the employee's payroll record.
- Toggle the Skip Payroll option.
- Click Save.
The employee's record will not be included in the processed payroll. Use this for:
- Employees on long leave without pay
- Employees whose salary data is incomplete
- Employees being processed in a separate off-cycle payrun
Adjusting LOP Days
If the LOP day count is incorrect (e.g., attendance was not properly recorded):
- Open the employee's payroll record.
- Edit the LOP Days field.
- The system recalculates the pro-rata salary and all dependent components.
- Click Save.
Including Reimbursements
If approved reimbursements are pending for the month:
- The system automatically includes approved reimbursements in the payroll.
- Review the reimbursement amounts in each employee's record.
- Reimbursements appear as a separate line item (not part of the standard salary components) and are added to the net pay.
Warning: Only reimbursements that have been fully approved appear in the payrun. Ensure the reimbursement approval workflow is complete before generating payroll. See Chapter 37: Reimbursements.
Step 5: Syncing Attendance Data
If you need to refresh the payrun with updated attendance data:
- Navigate to the payrun page.
- Click Sync Attendance (or Refresh Attendance Data).
- The system recalculates paid days and LOP days for all employees based on the latest attendance records.
- Payroll records are recalculated accordingly.
Tip: Sync attendance data if you notice discrepancies in LOP days during the review stage. This is especially useful if attendance corrections were made after the initial payroll generation.
Step 6: Processing the Payrun
Once all records have been reviewed and adjusted:
- Click Process Payroll (or Finalize).
- The system locks all individual records — no further edits are possible.
- The payrun status changes to Processed.
At this point, the payroll data is final and ready for approval.
Warning: Processing is irreversible. Double-check all records before clicking Process. If you discover an error after processing, you will need to use an off-cycle payrun to make corrections. See Chapter 30: Off-Cycle Payroll & Corrections.
Step 7: Approving the Payrun
The approval step provides an additional checkpoint before salary disbursement:
- An authorized approver (typically a senior HR administrator or finance head) reviews the processed payrun.
- The approver checks the total payroll cost, headcount, and any flagged records.
- Click Approve.
- The payrun status changes to Approved.
Approval Summary
The approval screen typically displays:
| Metric | Value |
|---|---|
| Total Employees | Number of employees included |
| Total Gross Pay | Sum of all gross pay amounts |
| Total Deductions | Sum of all deduction amounts |
| Total Net Pay | Sum of all net pay amounts (amount to be disbursed) |
| Total Employer Cost | Sum of employer contributions (PF ER, ESI ER, etc.) |
| Total CTC | Net Pay + Deductions + Employer Costs |

Tip: Compare the total net pay with the previous month to spot significant variances. Large differences may indicate data errors (e.g., a new joiner with an incorrect salary structure, or an employee incorrectly marked for LOP).
Payroll Rounding
The payroll_round_up setting controls how decimal values are handled in payroll calculations.
Configuration
- Navigate to Settings > Payroll Setups.
- Locate the Payroll Round Up setting.
- Set the number of decimal places (0 to 5).
- Click Save.
Rounding Behavior
| Setting | Behavior | Example |
|---|---|---|
| 0 | Round to whole numbers | INR 25,432.67 becomes INR 25,433 |
| 1 | Round to 1 decimal place | INR 25,432.67 becomes INR 25,432.7 |
| 2 | Round to 2 decimal places | INR 25,432.67 remains INR 25,432.67 |
| 5 | Round to 5 decimal places | Maximum precision |
Tip: Most Indian organizations use 0 (whole rupees) for the final net pay. This avoids fractional amounts in bank transfers. Component-level calculations may use higher precision internally, with rounding applied at the net pay level.
Pay Schedule
The pay_schedule setting defines the expected pay day for your organization.
Configuration
- Navigate to Settings > Payroll Setups.
- Locate the Pay Schedule (or Pay Day) setting.
- Set the pay day (e.g., last working day of the month, 1st of the following month, 7th of the following month).
- Click Save.
The pay schedule does not affect calculations but serves as a reference for:
- Employees expecting their salary on a specific date
- Bank advice generation timing
- Payroll processing deadlines
Viewing Payrun History
To view past payruns:
- Navigate to Payroll > Payruns.
- The list shows all payruns with their month, status, and summary.
- Click on any payrun to view its details, including individual employee records.
- Use filters to search by month, status, or payrun type.
Payrun History Table
| Month | Type | Status | Employees | Total Net Pay | Actions |
|---|---|---|---|---|---|
| Jan 2026 | Regular | Paid | 145 | INR 52,30,000 | View |
| Dec 2025 | Regular | Paid | 142 | INR 51,80,000 | View |
| Nov 2025 | Regular | Paid | 140 | INR 50,95,000 | View |
| Oct 2025 | Off-Cycle | Paid | 3 | INR 1,25,000 | View |

Complete Payrun Checklist
Use this checklist to ensure a smooth payroll cycle each month:
| Step | Task | Status |
|---|---|---|
| 1 | Finalize attendance records for the month | ☐ |
| 2 | Ensure all leave requests are approved/rejected | ☐ |
| 3 | Process any pending reimbursement claims | ☐ |
| 4 | Verify new joiner salary assignments are complete | ☐ |
| 5 | Verify exit employees have correct last working dates | ☐ |
| 6 | Create the payrun and generate records | ☐ |
| 7 | Review employee-wise breakdown for accuracy | ☐ |
| 8 | Adjust LOP days and skip records as needed | ☐ |
| 9 | Process the payrun | ☐ |
| 10 | Get payrun approved | ☐ |
| 11 | Generate payslips | ☐ |
| 12 | Generate bank advice | ☐ |
| 13 | Disburse salaries | ☐ |
| 14 | Mark payrun as paid | ☐ |
Troubleshooting Common Payrun Issues
| Issue | Likely Cause | Resolution |
|---|---|---|
| Employee missing from payrun | No salary structure assigned, or employee is inactive | Assign a salary structure and regenerate |
| Net pay is zero or negative | Excessive LOP days or deductions exceeding gross | Review LOP days and deduction components |
| PF/ESI not calculated | Statutory settings not configured or employee not enrolled | Check statutory configuration in Settings |
| Reimbursement not included | Reimbursement not yet approved | Complete the reimbursement approval workflow |
| Payrun shows incorrect working days | Holiday or work week configuration error | Verify holidays and work week settings |
| Pro-rata calculation seems wrong | Incorrect joining date or last working date | Verify employee dates in their profile |
Best Practices
- Establish a payroll calendar. Define cutoff dates for attendance, leave, and reimbursement submissions. Share this calendar with all employees and managers.
- Process payroll in the same sequence each month. Consistency reduces errors and makes the process predictable for the HR team.
- Review before processing. The most common payroll errors are caught during the review stage. Never skip it.
- Keep a backup. Export the generated payroll data before processing, so you have a reference if questions arise later.
- Document exceptions. If you manually adjust any record (LOP days, skip payroll, etc.), note the reason for audit purposes.
What Comes Next
With the payrun processed and approved, the next steps are generating payslips for employees and creating bank advice for salary disbursement. Proceed to Chapter 29: Payslips & Bank Advice.