Files @ f42aeb707e2a
Branch filter:

Location: CopyleftConf/copyleftconf-website/pinaxcon/templates/registrasion/invoice.html - annotation

Christopher Neugebauer
Factors the display of an invoice into _invoice_details.html for reuse in e-mail bits.
{% extends "site_base.html" %}
{% load bootstrap %}
{% load registrasion_tags %}
{% block body %}


{% if invoice.is_unpaid %}
  <p><strong>NOTICE:</strong> The below invoice is automatically generated, and will be voided
    if you amend your registration before payment, or if discounts or products contained in the
    invoice become unavailable. The items and discounts are only reserved until
    the invoice due time.</p>

  {% url "invoice_access" invoice.user.attendee.access_code as access_url %}
  <p>Your most recent unpaid invoice will be available at
    <a href="{{ access_url }}">{{ request.scheme }}://{{ request.get_host }}{{ access_url }}</a>
    You can give this URL to your accounts department to pay your registration.</p>

  <div>
    <a class="btn btn-default" href="{% url "demopay" invoice.id invoice.user.attendee.access_code %}">Pay this invoice</a>
    {% if user.is_staff %}
      <a class="btn btn-default" href="{% url "manual_payment" invoice.id %}">Apply manual payment</a>
    {% endif %}
  </div>
{% elif invoice.is_paid %}
  {% if user.is_staff %}
  <div>
    {% if user.is_staff %}
    <a class="btn btn-default" href="{% url "manual_payment" invoice.id %}">Apply manual payment/refund</a>
    <a class="btn btn-default" href="{% url "refund" invoice.id %}">Refund by issuing credit note</a>
    {% endif %}
  </div>
  {% endif %}
{% endif %}

<hr />

{% include "registrasion/_invoice_details.html" %}

{% endblock %}