{% extends 'base_rigs.html' %} {% block title %}Invoice {{ object.pk }}{% endblock %} {% block content %}

Invoice {{ object.pk }} ({{ object.invoice_date|date:"d/m/Y"}})

Invoice Details
{% if object.event.organisation %} {{ object.event.organisation.name }}
{{ object.event.organisation.address|linebreaksbr }} {% else %} {{ object.event.person.name }}
{{ object.event.person.address|linebreaksbr }} {% endif %}
Event Details {% if object.void %}(VOID){% elif object.is_closed %}(PAID){% else %}(OUTSTANDING){% endif %}
Event Number
N{{ object.event.pk|stringformat:"05d" }}
Event
{{ object.event.name }}
Event Venue
{{ object.event.venue }}
Event MIC
{{ object.event.mic.name }}
Event Starts
{{ object.event.start_date|date:"d M Y" }} {{ object.event.start_time|date:"H:i" }}
Event Ends
{{ object.event.end_date|date:"d M Y" }} {{ object.event.end_time|date:"H:i" }}
Status
{{ object.event.get_status_display }}
{% if object.event.dry_hire %}
 
Checked In By
{{ object.checked_in_by.name }}
{% endif %}
 
Authorised
{{ object.event.authorised|yesno:"Yes,No" }}
Authorised by
{% if object.event.authorised %} {{ object.event.authorisation.name }} ({{ object.event.authorisation.email }}) {% endif %}
{% if object.event.internal %} {# internal #}
Uni ID
{{ object.event.authorisation.uni_id }}
Account code
{{ object.event.authorisation.account_code }}
{% else %}
PO
{{ object.event.purchase_order }}
{% endif %}
Authorised at
{{ object.event.authorisation.last_edited_at }}
Authorised amount
{% if object.event.authorised %} £ {{ object.event.authorisation.amount|floatformat:"2" }} {% endif %}
Authorisation request sent by
{{ object.authorisation.sent_by }}
{% 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 %}
{% endblock %}