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

TR – {{ tr.employee.full_name }} ({{ '%02d'|format(tr.month) }}/{{ tr.year }})

{{ tr.status.replace('_',' ').title() }} Print
Total KMs: {{ '%.2f'|format(tr.total_kms or 0) }}
Total Amount: ₹ {{ '%.2f'|format(tr.total_amount or 0) }}
{% for it in tr.items %} {% endfor %}
DateFromTo KMs Rate Amount PurposeMode Attachment
{{ it.trip_date.strftime('%d %b %Y') }} {{ it.from_loc }} {{ it.to_loc }} {{ '%.2f'|format(it.kms_total) }} ₹ {{ '%.2f'|format(it.rate) }} ₹ {{ '%.2f'|format(it.amount) }} {{ it.purpose or '—' }} {{ it.mode or '—' }} {% if it.attachment_path %} 📎 View {% else %} {% endif %}
Totals: {{ '%.2f'|format(tr.total_kms or 0) }} ₹ {{ '%.2f'|format(tr.total_amount or 0) }}
{% endblock %}