{% load filters %}

N{{ object.pk|stringformat:"05d" }}: '{{ object.name }}'

{{object.start_date|date:"D jS N Y"}} {{ object.description|default_if_none:""|linebreaksxml }} {% if invoice %} INVOICE Invoice Number {{ invoice.pk|stringformat:"05d" }} Invoice Date {{ invoice.invoice_date|date:"d/m/Y" }} {% if not object.internal %} PO {{ object.purchase_order }} {% endif %} {% elif quote %} QUOTE Quote Date {% now "d/m/Y" %} {% elif receipt %} CONFIRMATION {% endif %}

Hirer

{{ object.person.name }}

{{ object.organisation.name|default_if_none:"" }}

{% if invoice %} {% if object.organisation.address %} {{ object.organisation.address|default_if_none:""|linebreaksxml }} {% elif object.person.address %} {{ object.person.address|default_if_none:""|linebreaksxml }} {% endif %} {% endif %} {% if object.person.phone %} {{ object.person.phone }} {% elif object.organisation.phone %} {{ object.organisation.phone }} {% endif %} {% if invoice %} {% if object.organisation.email %} {{ object.organisation.email }} {% elif object.person.email %} {{ object.person.email }} {% endif %} {% else %} {% if object.person.email %} {{ object.person.email }} {% elif object.organisation.email %} {{ object.organisation.email }} {% endif %} {% endif %}

Venue

{{ object.venue.name }}

{% if not invoice %} {{ object.venue.address|default_if_none:""|linebreaksxml }} {% endif %}

Timings

Start

{{ object.start_time|time:"H:i" }} {{ object.start_date|date:"d/m/Y" }}

End

{{ object.end_time|default_if_none:""|time:"H:i" }} {{ object.end_date|date:"d/m/Y" }} {% if object.access_at and not invoice%}

Access

{{ object.access_at|time:"H:i" }} {{ object.access_at|date:"d/m/Y" }} {% endif %}
{# Bold tags need to be in a para in order to render in reportlab #} Item Price Qty Sub-total {% for item in object.items.all %} {{ item.name }} {% if item.description %} {{ item.description|linebreaksxml }} {% endif %} £ {{ item.cost|floatformat:2 }} {{ item.quantity }} £ {{ item.total_cost|floatformat:2 }} {% endfor %} {% if quote %}VAT Registration Number: 170734807{% endif %} Total (ex. VAT) £ {{ object.sum_total|floatformat:2 }} {% if quote %} This quote is valid for 30 days unless otherwise arranged. {% endif %} VAT @ {{ object.vat_rate.as_percent|floatformat:2 }}% £ {{ object.vat|floatformat:2 }} {% if quote %} The full hire fee is payable at least 10 days before the event. {% endif %} {% if invoice %} Total £ {{ object.total|floatformat:2 }} {% else %} Total £ {{ object.total|floatformat:2 }} {% endif %} {% if invoice %}

Payments

Method Date Amount {% for payment in object.invoice.payment_set.all %} {{ payment.get_method_display }} {{ payment.date }} £ {{ payment.amount|floatformat:2 }} {% endfor %} Payment Total £ {{ object.invoice.payment_total|floatformat:2 }} Balance (ex. VAT) £ {{ object.invoice.balance|floatformat:2 }}
{% endif %} > {% if quote %} {% if object.internal %} Bookings will not be confirmed until the event is authorised online. {% else %} Bookings will not be confirmed until we have received written confirmation and a Purchase Order. {% endif %} 24 Hour Emergency Contacts: 07825 065681 and 07825 065678 {% else %} VAT Registration Number: 170734807 {% endif %} {% if object.internal and object.authorised %} Event authorised online by {{ object.authorisation.name }} ({{ object.authorisation.email }}) at {{ object.authorisation.last_edited_at }}. University ID Account Code Authorised Amount {{ object.authorisation.uni_id }} {{ object.authorisation.account_code }} £ {{ object.authorisation.amount|floatformat:2 }} {% endif %}