{% extends "base.html" %} {% block content %}
{% set role_name = (current_user.role.name if current_user.role else '')|lower %}

Payroll Summary

Month: {{ "%02d"|format(month) }} / {{ year }}
Consolidated View Disbursement Sheet {% if role_name in ['hr', 'admin'] %}
{% endif %}
Reset
Employees {{ total_employees }}
Total Gross {{ "%.2f"|format(total_gross) }}
Total Net {{ "%.2f"|format(total_net) }}
Frozen Payroll Records {% if records|length == 0 %} No records found {% endif %}
{% if records %} {% for item in records %} {% set rec = item.record %} {% set emp = item.employee %} {% endfor %} {% else %} {% endif %}
# Emp Code Employee Department Status F&F Gross Net Actions
{{ loop.index }} {{ emp.employee_code or "-" }}
{{ emp.full_name }}
{{ emp.location or '' }}
{{ emp.department.name if emp.department else '-' }} {{ item.status_label }} {% if item.is_fnf %} F&F {% else %} - {% endif %} {{ "%.2f"|format(rec.gross_pay or 0) }} {{ "%.2f"|format(rec.net_pay or 0) }}
{% if role_name in ['hr', 'admin'] %}
{% endif %}
No payroll records found for the selected month / filters.
{% endblock %}