{% 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 invoice.region and invoice.region.invoice_header %} {{ invoice.region.invoice_header|safe }} {% else %} {% include "invoices/include/default_invoice_header.html" %} {% 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 or can_edit %} {% if invoice.balance > 0 and invoice.is_tendered %}
{% endif %} {% if invoice.is_tendered and invoice.can_refund %}
{% endif %}
{% if invoice.payments_credits > 0 %}
{% endif %}
{% endif %}
{% if not invoice.is_void %} {% if request.user.is_authenticated %}
{% endif %} {% if request.user.is_superuser %}
{% endif %} {% endif %} {% if request.user.is_superuser or can_edit %}
{% csrf_token %}

{{ form.admin_notes }}

{% endif %} {% include "invoices/include/invoice_view_display.html" %}
{% 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 %}
{% if request.user.is_superuser %} {% if invoice.admin_notes %}

{% trans "Admin notes: " %} {{ invoice.admin_notes|safe }}

{% endif %} {% endif %} {% if invoice.region and invoice.region.invoice_footer %} {{ invoice.region.invoice_footer|safe }} {% else %} {% include "invoices/include/default_invoice_footer.html" %} {% endif %}
{% endblock %}