{% extends "django_program/manage/base.html" %} {% block title %}Purchase #{{ purchase.pk }} - Sponsor Portal{% endblock %} {% block breadcrumb %} {% endblock %} {% block page_title %}

Purchase #{{ purchase.pk }}

{{ purchase.quantity }} voucher codes — {% if purchase.payment_status == "paid" %} Paid {% elif purchase.payment_status == "pending" %} Pending {% elif purchase.payment_status == "processing" %} Processing {% elif purchase.payment_status == "failed" %} Failed {% elif purchase.payment_status == "refunded" %} Refunded {% endif %}

{% endblock %} {% block page_actions %} {% if voucher_links %} Export CSV {% endif %} Back to Portal {% endblock %} {% block content %}
Sponsor
{{ sponsor.name }}
Ticket Type
{{ purchase.product_description|default:purchase.ticket_type.name|default:"--" }}
Total Redemptions
{{ total_uses }} / {{ total_max }}
Vouchers Generated
{{ voucher_links|length }} / {{ purchase.quantity }}
Created
{{ purchase.created_at|date:"N j, Y, P" }}
{% if voucher_links %} {% for link in voucher_links %} {% endfor %}
Code Times Used Max Uses Status Valid From Valid Until
{{ link.voucher.code }} {{ link.voucher.times_used }} {{ link.voucher.max_uses }} {% if link.voucher.is_valid %} Valid {% elif not link.voucher.is_active %} Inactive {% elif link.voucher.times_used >= link.voucher.max_uses %} Exhausted {% else %} Expired {% endif %} {{ link.voucher.valid_from|date:"N j, Y"|default:"--" }} {{ link.voucher.valid_until|date:"N j, Y"|default:"--" }}
{% else %}

No voucher codes have been generated for this purchase yet.

{% if purchase.payment_status == "pending" %}

This purchase is still pending approval by the conference organizers.

{% endif %}
{% endif %} {% endblock %}