{% load saas_tags %} {% regroup invoicables by subscription.plan as invoicables_by_plan %}
{% for plan_group in invoicables_by_plan %} {% for entry in plan_group.list %} {% for line in entry.lines %} {% endfor %} {% for line in entry.options %} {% endfor %} {% endfor %} {% if is_bulk_buyer %} {% comment %} XXX We rely on the code in views/billing.py to insure there are lines and no options when bulk_buyer is ``True``. {% endcomment %} {% endif %} {% endfor %}
{{plan_group.grouper.title}} from {{plan_group.grouper.organization.printable_name}}
{{line.dest_amount|humanize_money:line.dest_unit}} {{line.descr}}
{{line.dest_amount|humanize_money:line.dest_unit}} {{line.descr}}
{{lines_amount|humanize_money:lines_unit}} Charged Today