{% extends "cms/home.html" %} {% load cms_tags danceschool_tags sekizai_tags i18n %} {% block content %} {% getReturnPage prior=True as returnPage %} {% if returnPage.url %}

« {% trans "Return to" %} {{ returnPage.title }}

{% endif %}

{% blocktrans %}Invoice for {{ businessName }}{% endblocktrans %}:

{% trans "Invoice Number" %}:
{{ object.id }}
{% if object.firstName or object.lastName or object.email %}
{% trans "Recipient" %}:
{% if object.firstName or object.lastName %}{{ object.firstName }} {{ object.lastName }}: {% endif %}{{ object.email|default:"unknown email" }} {% if "core.send_invoices" in perms and object.email %}{% trans "Notify Recipient" %}{% endif %}
{% endif %}
{% trans "Invoice Status" %}:
{{ object.statusLabel }}
{% if object.amountPaid %}
{% trans "Amount Paid" %}:
{{ currencySymbol }}{{ object.amountPaid|floatformat:"2" }}
{% endif %} {% if object.outstandingBalance %}
{% trans "Outstanding Balance" %}:
{{ currencySymbol }}{{ object.outstandingBalance|floatformat:"2" }}
{% endif %}
{% trans "Initial Price" %} {{ currencySymbol }}{{ object.grossTotal|floatformat:"2" }}
{% trans "Net Price" %} {{ currencySymbol }}{{ object.total|floatformat:"2" }}
{% trans "Taxes" %} {{ currencySymbol }}{{ object.taxes|floatformat:"2" }}
{% trans "Fees" %} {{ currencySymbol }}{{ object.fees|floatformat:"2" }}
{% trans "Adjustments/Refunds" %} {{ currencySymbol }}{{ object.adjustments|floatformat:"2" }}

{% trans "Item Details" %}

{% if 'core.change_registration' in perms and object.finalRegistration %} {% trans "View Registration" %} {% elif 'core.change_temporaryregistration' in perms and object.temporaryRegistration %} {% trans "View Temporary Registration" %} {% endif %} {% if 'financial.change_revenueitem' in perms %} {% endif %} {% for item in object.invoiceitem_set.all %} {% if 'financial.change_revenueitem' in perms %} {% endif %} {% endfor %}
{% trans "Name" %} {% trans "Inital Price" %} {% trans "Price with Discounts" %} {% trans "Taxes" %} {% trans "Fees" %} {% trans "Adjustments" %}{% trans "Links" %}
{{ item.name }} {{ currencySymbol }}{{ item.grossTotal|floatformat:"2" }} {{ currencySymbol }}{{ item.total|floatformat:"2" }} {{ currencySymbol }}{{ item.taxes|floatformat:"2" }} {{ currencySymbol }}{{ item.fees|floatformat:"2" }} {{ currencySymbol }}{{ item.adjustments|floatformat:"2" }} {% if item.revenueitem %} {% trans "Rev. Item" %} {% endif %}
{% if payments %}

{% trans "Payment Details" %}

{% if 'core.process_refunds' in perms %} {% trans "Refund" %} {% endif %} {% for payment in payments %} {% endfor %}
{% trans "Payment Method" %} {% trans "Transaction ID" %} {% trans "Amount" %}
{{ payment.methodName }} {{ payment.recordId }} {{ currencySymbol }}{{ payment.netAmountPaid|floatformat:"2" }}
{% endif %}

{% trans "Comments/Notes" %}

{{ object.comments }}
{% if object.outstandingBalance %}

{% trans "Pay Invoice" %}

{% static_placeholder "registration_payment_placeholder" %} {% endif %} {% if returnPage.url %}

« {% trans "Return to" %} {{ returnPage.title }}

{% endif %} {% endblock %}