{% load humanize %} {# HINT: keep line breaks after tags #}

Usage report for invoice #{{ invoice.invoice_number }}
Customer: {{ customer.name }}


Services consumed from {{ invoice.start_date }} till {{ invoice.end_date }}


{% for resource, data in resources.items %} {% for item in data.items %} {% endfor %} {% comment %} {% endcomment %} {% endfor %}

{{ resource }}

{{ data.amount|floatformat:3|intcomma }} {{ invoice.currency }}

{{ forloop.counter }} {{ item.name }} {{ item.usage }} {{ item.amount|floatformat:3|intcomma }} {{ item.currency }}
{% for item in data.items %} {% endfor %}
{{ forloop.counter }} {{ item.name }}
{{ item.usage }}
{{ item.amount|floatformat:3|intcomma }} {{ item.currency }}


Total: {{ invoice.amount|floatformat:3|intcomma }} {{ invoice.currency }}