{% load base_filters %} {% with invoice.get_object as object %}
{% 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" %} | {% if invoice.is_void %}{{ invoice.get_status|title }} | {% elif invoice.total > 0 %} {% if invoice.balance <= 0 %}{% trans "Paid" %} | {% else %}{% trans "Pending Payment" %} | {% endif %} {% else %}{% trans "Free" %} | {% endif %}
{% 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 }} |