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

Payroll Preview – {{ "%02d"|format(month) }}/{{ year }}

Active Notice FnF
{% for row in payroll_preview %} {# Optional row highlight if FnF #} {% set row_cls = 'table-info' if row.fnf_tag else '' %} {% endfor %}
# Emp Code Department Employee Tag Total Paid Days Present Leave Holiday Weekends LWP Earnings (₹) Deductions (₹) CTC (₹) Net Pay (₹) Attendance
{{ loop.index }} {{ row.employee.employee_code }} {{ row.employee.department.name }} {{ row.employee.full_name }} {# Backend should set: row.status_tag in {'active','notice'} (optional), row.fnf_tag True/False, row.lwd (date) #} {% if row.fnf_tag %} {{ 'FnF' }} {% elif row.status_tag == 'notice' %} Notice {% else %} Active {% endif %} {{ row.total_paid_days }} {{ row.present }} {{ row.leaves }} {{ row.holidays }} {{ row.weekends }} {{ row.lwp }} {{ "%.2f"|format(row.earnings) }} {{ "%.2f"|format(row.deductions) }} {{ "%.2f"|format(row.ctc) }} {{ "%.2f"|format(row.net_pay) }} View
{% endblock %}