{% extends "base.html" %} {% block content %}

Team Salary

View: {% if view == "current" %} Current Salary Structure {% else %} Frozen Payroll {% if frozen_month %}{{ frozen_month }}{% endif %} {% endif %}
{% if is_hr_or_admin %}
{% endif %}
{% if rows|length == 0 %}
No employees found for selected filters.
{% else %}
{% macro sort_link(label, key) -%} {% set next_dir = 'desc' if (sort == key and direction == 'asc') else 'asc' %} {{ label }} {% if sort == key %} {% endif %} {%- endmacro %} {% if view == "frozen" %} {% endif %} {% for (emp, gross, deductions, net, ctc, payroll_month) in rows %} {% if view == "frozen" %} {% endif %} {% endfor %}
{{ sort_link("Employee", "name") }} {{ sort_link("Code", "code") }} Department Designation {{ sort_link("Gross", "gross") }} {{ sort_link("Deductions", "deductions") }} {{ sort_link("Net", "net") }}{{ sort_link("CTC", "ctc") }} MonthAction
{{ emp.full_name }}
{{ emp.email }} {% if emp.reporting_manager %} · Manager: {{ emp.reporting_manager.full_name }} {% endif %}
{{ emp.employee_code }} {{ emp.department.name if emp.department else "-" }} {{ emp.designation.title if emp.designation else "-" }} {{ "%.2f"|format(gross or 0) }} {{ "%.2f"|format(deductions or 0) }} {{ "%.2f"|format(net or 0) }}{{ "%.2f"|format(ctc or 0) }} {{ payroll_month or frozen_month or "-" }}
{% endif %}
{% endblock %}