Help /
Payslip Entry
Payslip Entry
Create an individual employee payslip. This is where formulas are evaluated and all salary components are calculated.
How to Create
- Select the Employee
- Set the Pay Period (month/year)
- The system loads the salary components from the employee's salary structure
- Formulas are evaluated automatically for each component (see below)
- Review earnings and deductions
- Adjust any variable elements (overtime, bonuses) if needed
- Click Process Payslip
How Formula Evaluation Works
When a payslip is generated, the system:
- Determines the employee's Basic Salary
- Loads attendance data (working days, days worked, overtime hours, absences)
- Sets up the formula context with all built-in variables:
| Variable | Source |
BASIC | Employee's base salary for the period |
GROSS | Basic + cumulative earnings (updated after each component) |
DAYS_WORKED | From attendance records |
WORKING_DAYS | Calendar working days minus holidays/weekends |
OVERTIME_HOURS | From attendance records |
UNPAID_LEAVE_DAYS | Absent days from attendance |
HOURLY_RATE | BASIC / WORKING_DAYS / 8 |
- For each salary component (in display order):
- * If Amount Type = Fixed: uses the defined amount directly
- * If Amount Type = % of Basic: calculates amount x BASIC / 100
- * If Amount Type = % of Gross: calculates amount x current GROSS / 100
- * If Amount Type = Formula: evaluates the formula expression
- * If Amount Type = Attendance Based: prorates amount by days worked / working days
- * After each earning, GROSS is recalculated (cascading)
- After all salary components: adds automatic deductions (attendance deduction, income tax, statutory deductions, loan repayment)
- Calculates Net Salary = Total Earnings - Total Deductions
Formula Audit Trail
The exact formula text used for each payslip line is recorded in the payslip details. This provides a complete audit trail showing which formula was evaluated for each component, even if the formula is later changed.
Payslip Components
- Earnings - Basic salary, allowances, overtime, bonuses
- Deductions - Tax, insurance, loans, pension, attendance deductions
- Net Pay - Total earnings minus total deductions
See Also
- Payroll Formula System - Complete formula reference
- Payroll Processing (batch processing)
- Salary Structure
- Pay Elements