{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': 'Mileage'} ] %} {{ page_header( icon_class='fas fa-car', title_text='Mileage Tracking', subtitle_text='Track and manage vehicle mileage expenses', breadcrumbs=breadcrumbs, actions_html='New Mileage Entry' ) }}
Total Distance
{{ '%.2f'|format(total_distance) }} km
Total Amount
€{{ '%.2f'|format(total_amount) }}
Total Entries
{{ pagination.total if pagination else (mileage_entries|length) }}
| {% endif %} | Date | Purpose | Route | Distance | Amount | Status | Actions |
|---|---|---|---|---|---|---|---|
| {% endif %} | {{ entry.date.strftime('%Y-%m-%d') if entry.date else (entry.trip_date.strftime('%Y-%m-%d') if entry.trip_date else '—') }} |
{{ entry.purpose }}
{% if entry.project %}
{{ entry.project.name }}
{% endif %}
|
{{ entry.start_location }}
{{ entry.end_location }}
|
{{ '%.2f'|format(entry.distance_km) }} km | {{ entry.currency_code or 'EUR' }} {{ '%.2f'|format(entry.total_amount or (entry.calculated_amount or 0)) }} | {% if entry.status == 'pending' %} Pending {% elif entry.status == 'approved' %} Approved {% elif entry.status == 'rejected' %} Rejected {% elif entry.status == 'reimbursed' %} Reimbursed {% else %} {{ entry.status|title }} {% endif %} | View |