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

Bill {{ bill.period_start|date:"d M Y" }} → {{ bill.period_end|date:"d M Y" }}

{{ bill.days }} days, {{ bill.units }} units. Slab limits are pro-rated to {{ bill.days }}/30 of the standard limits.

Line items

{% for ln in calc.lines %} {% endfor %}
{{ ln.label }}{% if ln.qty is not None and ln.rate is not None %} ({{ ln.qty|floatformat:"-2" }} x {{ ln.rate|floatformat:"-4" }}){% endif %}{{ ln.amount|floatformat:"2g" }}
Total payableRs {{ calc.total|floatformat:"2g" }}
{% if calc.segments|length > 1 %}

Tariff versions in this period

{% endif %}

Units in each slab

{% for x in slabs %}{% if x.pct > 0 %}{% endif %}{% endfor %}
{% for x in slabs %}{% endfor %}
SlabUnitsRateAmount
{{ x.s.label }}{{ x.s.units|floatformat:1 }}{{ x.s.rate }}{{ x.s.amount|floatformat:2 }}

Against the actual bill

{% if diff is not None %}

Actual Rs {{ bill.actual_amount|floatformat:"2g" }}; difference {{ diff|floatformat:2 }} (actual minus computed).

{% else %}

No actual amount entered.

{% endif %}
{% csrf_token %}{{ form.as_div }}
{% endblock %}