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

HOD – Reimbursements

Pending: {{ pending|length }} Processed: {{ processed|length }}
Pending (Manager Action)
{% if pending %} {% for r in pending %} {% set rt = r.reimb_type %} {% set req_km = (rt.requires_km_fields if rt else false) %} {% set att_count = (r.items|selectattr('attachment_path')|list)|length %} {% endfor %} {% else %} {% endif %}
# Employee Type Date Range Total KMs Total Amount Att Actions
{{ loop.index }} {{ r.employee.full_name }} {{ rt.name if rt else 'Reimbursement' }} {{ r.from_date }} → {{ r.to_date }}
{{ '%02d'|format(r.month or 0) }}/{{ r.year or '' }}
{% if req_km %} {{ '%.2f'|format(r.total_kms or 0) }} {% else %} — {% endif %} ₹ {{ '%.2f'|format(r.total_amount or 0) }} {% if att_count > 0 %} {{ att_count }} {% else %} — {% endif %} View
No pending items.
Processed (Approved / Rejected)
{% if processed %} {% for r in processed %} {% set rt = r.reimb_type %} {% set req_km = (rt.requires_km_fields if rt else false) %} {% set att_count = (r.items|selectattr('attachment_path')|list)|length %} {% endfor %} {% else %} {% endif %}
# Employee Type Date Range Total KMs Total Amount Att Status
{{ loop.index }} {{ r.employee.full_name }} {{ rt.name if rt else 'Reimbursement' }} {{ r.from_date }} → {{ r.to_date }}
{{ '%02d'|format(r.month or 0) }}/{{ r.year or '' }}
{% if req_km %} {{ '%.2f'|format(r.total_kms or 0) }} {% else %} — {% endif %} ₹ {{ '%.2f'|format(r.total_amount or 0) }} {% if att_count > 0 %} {{ att_count }} {% else %} — {% endif %} {% if r.status=='manager_approved' %} Approved → HR {% else %} Rejected {% endif %}
No processed items.
{% endblock %}