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

{{ SITE_GLOBAL_SITEMAILINGADDRESS }}

{% endif %} {% if invoice.balance > 0 and can_pay %} {% if SITE_GLOBAL_MERCHANTACCOUNT and SITE_GLOBAL_MERCHANTACCOUNT != 'asdf asdf asdf' %}
{% endif %} {% endif %} {% if request.user.is_superuser %} {% if invoice.balance > 0 and invoice.is_tendered %}
{% endif %}
{% if invoice.payments_credits > 0 %}
{% endif %}
{% endif %}
{% if not invoice.is_void %}
{% if request.user.is_superuser %}
{% endif %} {% 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 %} {% if invoice.is_void and invoice.void_date %} {% if invoice.void_date %} {% endif %} {% if invoice.void_reason %} {% endif %} {% endif %}
{% trans 'Invoice #' %} {{ invoice.id }}
{% trans "Invoice For" %} {% if object.event.pk %} {{ object }}
{% trans '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 "Void Date" %} {{ invoice.void_date|date:'N j, Y h:i a' }}
{% trans "Void Reason" %} {{ invoice.void_reason }}
{% trans "Invoice Amount" %} {{ invoice.total|format_currency }}
{% if MODULE_INVOICES_INVOICELOGO %} {% endif %}
{% endwith %}
{% invoice_object_display request invoice %}
Description {% trans 'Line Amount' %}
{% invoice_total_display request invoice %}
{% if invoice.is_void %}
VOIDED
{% endif %}
{% payment_history_display request invoice %}
{% endblock %}