{% load registrasion_tags %}

Invoice

{% with invoice_user=invoice.cart.user %} {% endwith %}

This invoice has been issued as a result of an application to attend (conference name).

{% for line_item in invoice.lineitem_set.all %} {% endfor %}
Description Quantity Price/Unit Total
{{ line_item.description }} {{ line_item.quantity }} ${{ line_item.price }} ${{ line_item.price|multiply:line_item.quantity }}
TOTAL ${{ invoice.value }}
{% if invoice.paymentbase_set.all %}

Payments received

{% include "registrasion/payment_list.html" with payments=invoice.paymentbase_set.all %} {% endif %}