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

HR – Reimbursements

Pending: {{ pending|length }} Processed: {{ processed|length }}
Export works only when Month + Year are selected.
Pending (HR 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
{% 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 %} {% set can_select = (r.status == 'hr_approved') %} {% endfor %} {% else %} {% endif %}
# Employee Type Date Range Total KMs Total Amount Att Status Action
{% if can_select %} {% else %} — {% endif %} {{ 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=='hr_approved' %} HR Approved {% elif r.status=='paid' %} Paid {% else %} Rejected {% endif %} {% if r.status=='hr_approved' %}
{% else %} — {% endif %}
No processed items.
{% endblock %}