{% 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) }}
Regular Payroll Records {% if regular_records|length == 0 %} No records found {% endif %}
{% if regular_records %} {% for item in regular_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 regular payroll records found for the selected month / filters.
{% if stipend_records %}
Stipend Payroll Records {{ stipend_records|length }}
{% for item in stipend_records %} {% set rec = item.record %} {% set emp = item.employee %} {% endfor %}
#Emp CodeEmployeeDepartment StatusStipend PayableActions
{{ loop.index }} {{ emp.employee_code or '-' }}
{{ emp.full_name }}
{{ emp.location or '' }}
{{ emp.department.name if emp.department else '-' }} {{ item.status_label }} {{ "%.2f"|format(rec.net_pay or 0) }}
{% endif %}
{% endblock %}