{% extends "cms/admin_home.html" %} {% load danceschool_tags sekizai_tags i18n %} {% block content %}

{% trans "Invoice #" %}{{ invoice.id }} {% if registration %} {% blocktrans with name=registration.fullName %} for {{ name }} {% endblocktrans %} {% endif %}

{% getReturnPage as returnPage %} {% if returnPage.url %}

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

{% endif %}
{% trans "Date & Time" %}:
{{ invoice.creationDate|date:'DATETIME_FORMAT' }}
{% trans "Net Amount Paid" %}:
{{ invoice.amountPaid }}
{% trans "Price with Discounts" %}:
{{ invoice.total }}
{% trans "Paid Online" %}:
{{ invoice.paidOnline|yesno }}
{% if registration %}
{% trans "Student" %}:
{{ registration.student|yesno }}
{% endif %}
{% if payments %}
{% trans "Payment Details" %}
{% for payment in payments %} {{ payment.methodName }}: {{ payment.recordId }}
{% if not payment.refundable %} {% trans "Note" context "alert" %}: {% trans "This payment does not appear to be automatically refundable. Please manually refund the money to this student after filling out this form." %}
{% endif %} {% endfor %}
{% endif %}
{% csrf_token %}

{% trans "Total Refund Amount" %}: {{ currencySymbol }}{{ invoice.refunds|floatformat:2 }}

{% if invoice.revenueNotYetReceived %} {% endif %} {% if invoice.unpaid %} {% endif %} {% if form.non_field_errors %} {% endif %} {% if form.id.errors %} {% endif %} {% if form.total_refund_amount.errors %} {% endif %} {% if form.initial_refund_amount.errors %} {% endif %} {{ form.id }} {{ form.total_refund_amount }} {{ form.initial_refund_amount }}
{% trans "Item Details" %}
{% if invoice.taxes > 0 and invoice.buyerPaysSalesTax %} {% endif %} {% for item in invoice.invoiceitem_set.all %} {% if invoice.taxes > 0 and invoice.buyerPaysSalesTax %} {% endif %} {% endfor %}
{% trans "Item ID" %} {% trans "Item Name" %} {% trans "Dates" %} {% trans "Price (Gross)" %} {% trans "Price (Net)" %}{% trans "Taxes" %}{% trans "Cancelled" %} {% trans "Refunds/Adjustments" %}
{{ item.id }} {{ item.name }} {% for occ in item.finalEventRegistration.event.eventoccurrence_set.all %} {{ occ.startTime|date:"M. jS" }}{% if not forloop.last %}, {% endif %} {% endfor %} {{ currencySymbol }}{{ item.grossTotal|floatformat:2 }} {{ currencySymbol }}{{ item.total|floatformat:2 }}{{ currencySymbol }}{{ item.taxes|floatformat:2 }}{% get_field_for_object 'item_cancelled' item.id form as field_cancelled %}{{ field_cancelled }} {% get_field_for_object 'item_refundamount' item.id form as field_refundAmount %}{{ field_refundAmount }} {{ field_cancelled.errors }}{{ field_refundAmount.errors }}
{{ form.comments.errors }} {{ form.comments.label_tag }}
{{ form.comments }}

{{ form.comments.help_text }}


{% if returnPage.url %}

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

{% else %}

{% trans "Class Registration Page" %} {% trans "Select Another Event" %}

{% endif %} {% addtoblock "js" %} {% endaddtoblock %} {% endblock %}