Add Fuel costs when they exist
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4aab99bcbc
commit
277930acde
@ -77,6 +77,7 @@ Last Mileage
|
|||||||
<th scope="col">Oil</th>
|
<th scope="col">Oil</th>
|
||||||
<th scope="col">Litres</th>
|
<th scope="col">Litres</th>
|
||||||
<th scope="col">$/Litre</th>
|
<th scope="col">$/Litre</th>
|
||||||
|
<th scope="col">$ Total</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -87,6 +88,9 @@ Last Mileage
|
|||||||
<td>{{ point['oilhealth'] }}</td>
|
<td>{{ point['oilhealth'] }}</td>
|
||||||
<td>{{ point['fuel'] }}</td>
|
<td>{{ point['fuel'] }}</td>
|
||||||
<td>{{ point['fuelcost'] }}</td>
|
<td>{{ point['fuelcost'] }}</td>
|
||||||
|
{% if point['fuel'] %}
|
||||||
|
<td>{{ '%0.2f' % ((point['fuel'] | float) * (point['fuelcost'] | float)) }}</td>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user