{% extends "site_base.html" %} {% load bootstrap %} {% load registrasion_tags %} {% block body %} {% if invoice.is_unpaid %}

NOTICE: The below invoice is automatically generated, and will be voided if you amend your registration before payment, or if discounts or products contained in the invoice become unavailable. The items and discounts are only reserved until the invoice due time.

{% url "invoice_access" invoice.user.attendee.access_code as access_url %}

Your most recent unpaid invoice will be available at {{ request.scheme }}://{{ request.get_host }}{{ access_url }} You can give this URL to your accounts department to pay your registration.

Pay this invoice {% if user.is_staff %} Apply manual payment {% endif %}
{% elif invoice.is_paid %} {% if user.is_staff %}
{% if user.is_staff %} Apply manual payment/refund Refund by issuing credit note {% endif %}
{% endif %} {% endif %}

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 %} {% endblock %}