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

Resumen

{% for repostaje in repostajes %} {% endfor %}
# Fecha Vehículo Kilómetros Litros Descuento Precio/litro Importe
{{ repostaje.id }} {{ repostaje.fecha }} {{ repostaje.vehiculos.matricula }} {{ "%.0f"|format(repostaje.kms) }} {{ "%.2f €"|format(repostaje.litros) }} {{ "%.2f €"|format(repostaje.descuento) }} {{ "%.2f €"|format(repostaje.precioxlitro) }} {{ "%.2f €"|format(repostaje.importe) }}
{% for micoche in vehiculos %}
{% for repostaje in repostajes %} {% if repostaje.vehiculo_id == micoche.id %} {% endif %} {% endfor %}
# Fecha Vehículo Kilómetros Litros Descuento Precio/litro Importe
{{ repostaje.id }} {{ repostaje.fecha }} {{ repostaje.vehiculos.matricula }} {{ "%.0f"|format(repostaje.kms) }} {{ "%.2f €"|format(repostaje.litros) }} {{ "%.2f €"|format(repostaje.descuento) }} {{ "%.2f €"|format(repostaje.precioxlitro) }} {{ "%.2f €"|format(repostaje.importe) }}
{% endfor %}
{% for row in vehiculos %} {% endfor %}
# Marca Modelo Matricula
{{ row.id }} {{ row.marca }} {{ row.modelo }} {{ row.matricula }}
{% endblock %}