{% extends 'base_rigs.html' %} {% load button from filters %} {% block content %}
Delete Void {% button 'print' url='invoice_print' pk=object.pk %}
Invoice Details {% if object.void %}(VOID){% elif object.is_closed %}(PAID){% else %}(OUTSTANDING){% endif %}
{% if object.event.organisation %} {{ object.event.organisation.name }}
{{ object.event.organisation.address|linebreaksbr }} {% else %} {{ object.event.person.name }}
{{ object.event.person.address|linebreaksbr }} {% endif %}
{% include 'partials/event_details.html' %}
{% if object.event.internal %}
{% include 'partials/auth_details.html' %}
{% endif %}
{% for payment in object.payment_set.all %} {% endfor %}
Date Amount Method
{{ payment.date }} {{ payment.amount|floatformat:2 }} {{ payment.get_method_display }}
Balance: {{ object.balance|floatformat:2 }}
{% with object.event as object %} {% include 'item_table.html' %} {% endwith %}
{% include 'partials/last_edited.html' with target="invoice_history" %}
{% endblock %}