|
|
@ -24,84 +24,19 @@ |
|
|
<div class="app-card app-card-orders-table shadow-sm mb-5"> |
|
|
<div class="app-card app-card-orders-table shadow-sm mb-5"> |
|
|
<div class="app-card-body"> |
|
|
<div class="app-card-body"> |
|
|
<div class="table-responsive"> |
|
|
<div class="table-responsive"> |
|
|
<table class="table app-table-hover 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> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</thead> |
|
|
|
|
|
<tbody> |
|
|
|
|
|
{% for repostaje in repostajes %} |
|
|
|
|
|
<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> |
|
|
|
|
|
</tr> |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
</tbody> |
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
{% include '_tablarepostajes.html' %} |
|
|
</div><!--//table-responsive--> |
|
|
</div><!--//table-responsive--> |
|
|
</div><!--//app-card-body--> |
|
|
</div><!--//app-card-body--> |
|
|
</div><!--//app-card--> |
|
|
</div><!--//app-card--> |
|
|
</div><!--//tab-pane--> |
|
|
</div><!--//tab-pane--> |
|
|
|
|
|
|
|
|
{% for micoche in vehiculos %} |
|
|
|
|
|
|
|
|
{% for vehiculo in vehiculos %} |
|
|
|
|
|
|
|
|
<div class="tab-pane fade" id="{{ micoche.matricula }}" role="tabpanel" aria-labelledby="orders-paid-tab"> |
|
|
|
|
|
|
|
|
<div class="tab-pane fade" id="{{ vehiculo.matricula }}" role="tabpanel" aria-labelledby="orders-paid-tab"> |
|
|
<div class="app-card app-card-orders-table mb-5"> |
|
|
<div class="app-card app-card-orders-table mb-5"> |
|
|
<div class="app-card-body"> |
|
|
<div class="app-card-body"> |
|
|
<div class="table-responsive"> |
|
|
<div class="table-responsive"> |
|
|
<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 == micoche.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> |
|
|
|
|
|
</tr> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
|
|
</tbody> |
|
|
|
|
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
{% include '_tablarepostajescompleta.html' %} |
|
|
</div><!--//table-responsive--> |
|
|
</div><!--//table-responsive--> |
|
|
</div><!--//app-card-body--> |
|
|
</div><!--//app-card-body--> |
|
|
</div><!--//app-card--> |
|
|
</div><!--//app-card--> |
|
|
|