{% extends 'base_rigs.html' %} {% load paginator from filters %} {% load button from filters %} {% load static %} {% block content %}
{{ description }} {% block search %}{% endblock %}
{% for invoice in invoice_list %} {% endfor %}
Invoice # Event Client Event Date Invoice Date Balance
{{ invoice.display_id }}
{% if invoice.void %}(VOID){% elif invoice.is_closed %}(PAID){% else %}(O/S){% endif %}
N{{ invoice.event.pk|stringformat:"05d" }}: {{ invoice.event.name }}
{{ invoice.event.get_status_display }}{% if not invoice.event.mic %}, No MIC{% endif %}
{% if invoice.event.organisation %} {{ invoice.event.organisation.name }}
{{ invoice.event.internal|yesno:'Internal,External' }} {% elif invoice.event.person %} {{ invoice.event.person.name }}
Individual {% endif %}
{{ invoice.event.start_date }} {{ invoice.invoice_date }} {{ invoice.balance|floatformat:2 }} {% if not invoice.event.internal %}
{{ invoice.event.purchase_order }} {% endif %}
{% button 'view' url='invoice_detail' pk=invoice.pk %}
{% if is_paginated %}
{% paginator %}
{% endif %}
{% endblock %}