{% load base_filters %} {% with invoice.get_object as object %}
{% if object %} {% endif %} {% if invoice.is_void %} {% elif invoice.total > 0 %} {% if invoice.balance <= 0 %} {% else %} {% endif %} {% 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 }}
{% if object.event.pk %}{% trans "Invoice for" %}{% else %}{% trans "Invoice to" %}{% endif %} {% if object.event.pk %} {% if obj_name == 'registration' %} {{ object }}
{% else %} {% if request.user.is_superuser %} {{ object }}
{% else %} {{ object }}
{% endif %} {% endif %} {% trans 'Event Date' %}: {{ object.event.start_dt }} {% else %} {% if invoice.bill_to %} {{ invoice.bill_to }}
{% if obj_name == "Corporate Membership" %} {% if invoice.bill_to != invoice.bill_to_company %} {{ invoice.bill_to_company }}
{% endif %} {% endif %} {% else %} {% if invoice.bill_to_first_name or invoice.bill_to_last_name %} {% if invoice.bill_to_first_name %} {{ invoice.bill_to_first_name }} {% endif %} {% if invoice.bill_to_last_name %}{{ invoice.bill_to_last_name }}
{% endif %} {% else %} {{ SITE_GLOBAL_SITEDISPLAYNAME }}
{% endif %} {% 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 }}{% trans "Paid" %}{% trans "Pending Payment" %}{% trans "Free" %}
{% 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 }}
{% endwith %}