<table class="table mb-0 text-left">
|
|
<thead>
|
|
<tr>
|
|
<th class="cell">#</th>
|
|
<th class="cell">Fecha</th>
|
|
<th class="cell">Vehículo</th>
|
|
<th class="cell">Kilómetros</th>
|
|
<th class="cell">Litros</th>
|
|
<th class="cell">Descuento</th>
|
|
<th class="cell">Precio/litro</th>
|
|
<th class="cell">Importe</th>
|
|
<th class="cell">Recorridos</th>
|
|
<th class="cell">Consumo/100kms</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for repostaje in repostajes %}
|
|
|
|
{% if repostaje.vehiculo_id == vehiculo.id %}
|
|
|
|
<tr>
|
|
<td class="cell">{{ repostaje.id }}</td>
|
|
<td class="cell">{{ repostaje.fecha }}</td>
|
|
<td class="cell">{{ repostaje.vehiculos.matricula }}</td>
|
|
<td style="text-align: right" class="cell">{{ "%.0f"|format(repostaje.kms) }}</td>
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.litros) }}</td>
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.descuento) }}</td>
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.precioxlitro) }}</td>
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.importe) }}</td>
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.kmsrecorridos) }}</td>
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.consumo) }}</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|