{% 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.total_price }}
TOTAL ${{ invoice.value }}
Total payments: ${{ invoice.total_payments }}
Balance due: ${{ invoice.balance_due }}
{% if invoice.paymentbase_set.all %}

Payments received

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