{% extends 'base.html' %} {% load static %} {% block title %}Generate Payroll Expenses - Optinet Global Links{% endblock %} {% block content %}

Generate Payroll Expenses

Back to Expenses
Generate Expenses from Payslips
Info: This will automatically create approved expense entries for employee salaries and bonuses based on generated payslips. Existing expenses for the same period will not be duplicated.
{% if payslip_periods %}
{% csrf_token %}
Available Payslip Periods:
{% for period in payslip_periods %}
{{ period|date:"F Y" }}
{% endfor %}
{% else %}
No Payslips Found: There are no generated payslips available. Please generate payslips first in the HR module before creating payroll expenses.

Generate Payslips
{% endif %}
How It Works
Salary Expenses
  • Creates one expense per employee for their net salary
  • Uses "Employee Salaries" category
  • Auto-approved and marked as non-reimbursable
  • Links to the original payslip
Bonus Expenses
  • Creates separate expenses for employee bonuses
  • Uses "Employee Bonuses" category
  • Includes detailed bonus breakdown
  • Only created if employee has bonuses
Safety: The system will not create duplicate expenses. If expenses already exist for a period, they will be skipped.
{% endblock %}