{% extends "base.html" %} {% block title %}{{ meta_title }}{% endblock %} {% block content %}

IRS-style mileage log

Reports

Monthly, custom-range, and annual summaries with CSV export and print-friendly tables.

Log trip
{{ form.report_type }}
{{ form.month }}
{{ form.year }}
{{ form.start_date }}
{{ form.end_date }}
{% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}

Total business miles

{{ summary.business_miles|floatformat:1 }}

Primary number for deduction review

Personal / commuting / repair miles

{{ summary.non_business_miles|floatformat:1 }}

Useful context for year-end records

Total trips

{{ summary.trip_count }}

Entries in this report period
{% if trips %}
{% for trip in trips %} {% endfor %}
DateStartEndFromToPurposeTypeStart odoEnd odoMiles
{{ trip.date|date:"Y-m-d" }} {{ trip.start_time|time:"H:i" }} {{ trip.end_time|time:"H:i" }} {{ trip.start_location }} {{ trip.end_location }} {{ trip.business_purpose }} {{ trip.get_trip_type_display }} {{ trip.start_odometer|default:"" }} {{ trip.end_odometer|default:"" }} {{ trip.distance_miles|floatformat:1 }}
{% else %}

No trips in this report period

Run a different date range or add a new mileage entry.

{% endif %}
{% endblock %}