{% extends "layout.html" %} {% block title %}OptiWarm - Fuel Costs{% endblock %} {% block content %}

Fuel Costs

Add Fuel Cost Back to Boilers
Manage Fuel Costs
{% if total_count > 0 %} {{ total_count }} record{{ 's' if total_count != 1 else '' }} {% if date_range.min_date or date_range.max_date %} {% if date_range.min_date and date_range.max_date %} {{ date_range.min_date.strftime('%Y-%m-%d') }} - {{ date_range.max_date.strftime('%Y-%m-%d') }} {% elif date_range.min_date %} From {{ date_range.min_date.strftime('%Y-%m-%d') }} {% elif date_range.max_date %} Until {{ date_range.max_date.strftime('%Y-%m-%d') }} {% endif %} {% endif %} {% else %} No records {% endif %}
{% if costs %}
{% for cost in costs %} {% endfor %}
Fuel Type Units Price Price/Unit From Date To Date Status Actions
{{ cost.fueltypeid.name }} {{ cost.unit }} {{ cost.fueltypeid.unit_name }} {{ cost.price }} {{ "%.2f"|format(cost.price / cost.unit) }} / {{ cost.fueltypeid.unit_name }} {{ cost.from_date.strftime('%Y-%m-%d %H:%M') if cost.from_date else "-" }} {{ cost.to_date.strftime('%Y-%m-%d %H:%M') if cost.to_date else "-" }} {% if cost.is_current %} Current {% else %} Inactive {% endif %}
{% if total_count > 100 %} View all {{ total_count }} records {% endif %}
{% else %}
No fuel cost records found. Add a fuel cost record to get started.
{% endif %}
{% endblock %}