# Payroll

Payroll combines staff salary structures, attendance, approved leave, and approved overtime for a selected month.

## Generate payroll

1. Go to **Users & Staff > Salary & Payments**.
2. Select **Generate Payroll**.
3. Choose the payroll month.
4. Select **Generate**.
5. Review staff count, gross amount, net amount, and status.

## Review and adjust payroll

1. Open payroll details.
2. Review each staff payroll item.
3. Edit payroll items if corrections are needed before payment.
4. Save changes.

## Record payments

1. Open payroll details or use the payroll action.
2. To pay the full payroll, select **Mark as Paid**, enter payment date, method, and notes, then confirm.
3. To record a partial staff payment, use **Record Payment** on the payroll item.
4. Enter amount, payment method, payment date, reference, and notes.

## What SmartAcademy does in the background

The backend generates payroll for staff with branch assignment and salary structure, counts attendance, approved leaves, half-days, holidays, and approved overtime, calculates gross and net pay, and updates payment status as Pending, Partially Paid, or Paid.

## Tips

- Run payroll after staff attendance, leave approvals, overtime approvals, salary structures, and branch assignments are complete.
- Staff without branch assignment may be skipped during payroll generation.

## Related pages

- [Salary structures](/smartacademy-v2-platform/staff/salary-structures)
- [Staff attendance](/smartacademy-v2-platform/staff/staff-attendance)
- [Overtime](/smartacademy-v2-platform/staff/overtime)
