{% extends 'base.html' %} {% block content %}
| Date | From | To | KMs | Rate | Amount | Purpose | Mode | 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) }} | ||||||