{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% block title %}{% trans "Voucher engine" %}{% endblock %} {% block content %}

{% trans "Voucher engine" %} {% trans "Export all (CSV)" %}

{% blocktrans %}Mint a batch of pretix vouchers by rule — a time-boxed flash discount, a run of per-influencer uniques, a student/NHS bulk drop. Codes are generated with pretix's own generator (globally unique) and tagged so you can track redemptions and export them.{% endblocktrans %}

{% csrf_token %}

{% trans "percent = % off · set = fixed price · subtract = amount off" %}

{% trans "Pick a product to make these codes valid for that ticket only. For several tickets, generate a batch per ticket." %}
{% if last_codes %}
{% trans "Last batch" %} — {{ last_codes|length }} {% trans "codes" %} · {{ last_tag }} {% trans "Export this batch (CSV)" %}
{% endif %}

{% trans "Past batches" %}

{% for b in batches %} {% empty %} {% endfor %}
{% trans "When" %}{% trans "Label" %}{% trans "Tag" %} {% trans "Count" %}{% trans "Effect" %} {% trans "Value" %}{% trans "Max uses" %} {% trans "Valid days" %}
{{ b.created|date:"Y-m-d H:i" }} {{ b.label }} {{ b.tag }} {{ b.count }} {{ b.price_mode }} {{ b.value }} {{ b.max_usages }} {{ b.valid_days|default:"—" }} {% trans "CSV" %}
{% trans "No batches yet. Generate one above." %}
{% endblock %}