{% extends "invoices/base-wide.html" %} {% load invoice_tags %} {% load perm_tags %} {% load base_filters %} {% load i18n %} {% block title %}{{ block.super }}{% if obj_name %}{{ obj_name|capfirst }}{% endif %} Invoice{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block body %}
{% invoice_nav invoice %} {% has_perm request.user invoices.change_invoice as can_edit_invoice %}

{% if obj_name %}{{ obj_name|capfirst }}{% endif %} Invoice

{% if SITE_GLOBAL_SITEMAILINGADDRESS %}
{{ SITE_GLOBAL_SITEMAILINGADDRESS }}
{% endif %} {% if request.user.is_superuser or can_edit_invoice %}
{% endif %} {% if invoice.balance > 0 %}
{% endif %} {% if request.user.is_superuser and invoice.payments_credits > 0 %}
{% endif %}
{% if request.user.is_superuser or can_edit_invoice %}
{% csrf_token %}

{{ form.admin_notes }}

{% endif %} {% with invoice.get_object as object %}
{% if object %} {% endif %} {% if invoice.is_void %} {% elif invoice.is_tendered %} {% else %} {% endif %}
Invoice # {{ invoice.id }}
{% trans "Invoice For" %} {% if object.event.pk %} {{ object }}
Event Date: {{ object.event.start_dt }} {% else %} {{ SITE_GLOBAL_SITEDISPLAYNAME }}
{% if invoice.bill_to_first_name %} {{ invoice.bill_to_first_name }} {% endif %} {% if invoice.bill_to_last_name %}{{ invoice.bill_to_last_name }}
{% endif %} {% if invoice.bill_to_address %} {{ invoice.bill_to_address }}
{% endif %} {% if invoice.bill_to_city %}{{ invoice.bill_to_city}},{% endif %} {% if invoice.bill_to_state %}{{ invoice.bill_to_state }}{% endif %} {% if invoice.bill_to_zip_code %}{{ invoice.bill_to_zip_code }}{% endif %} {% endif %}
{% trans "Invoice Date" %} {{ invoice.create_dt|date:'N j, Y h:i a' }}
{% trans "Invoice Status" %}{{ invoice.get_status|title }} {{ invoice.get_status|title }} {% blocktrans with invoice.tender_date|date:'N j, Y h:i a' as tenddate %}{{ tenddate }}{% endblocktrans %} {{ invoice.get_status|title }}
{% trans "Invoice Amount" %} {{ invoice.total|format_currency }}
{% endwith %}
{% invoice_object_display request invoice %}
Description Line Amount
{% invoice_total_display request invoice %}
{% payment_history_display request invoice %}
{% endblock %}