{% extends "core/base.html" %} {% block title %}Bills{% endblock %} {% block content %}

Bills: computed vs actual

{% if mean_abs is not None %}

Across {{ compared }} bills with an actual amount, the engine is off by Rs {{ mean_abs|floatformat:2 }} on average.

{% endif %}

Enter a bill

{% csrf_token %}{{ form.as_div }}

From readings

Create a bill period for every pair of consecutive readings.

{% csrf_token %}
{% for i in items %} {% empty %}{% endfor %}
PeriodDaysUnitsComputed (Rs)Actual (Rs)Difference
{{ i.bill.period_start|date:"d M Y" }} → {{ i.bill.period_end|date:"d M Y" }}{{ i.bill.days }}{{ i.bill.units }} {{ i.calc.total|floatformat:"2g" }} {% if i.bill.actual_amount is not None %}{{ i.bill.actual_amount|floatformat:"2g" }}{% else %}-{% endif %} {% if i.diff is not None %}{{ i.diff|floatformat:2 }}{% endif %} Breakdown
No bills yet.
{% endblock %}