{% extends "base.html" %} {% block title %}Voucher Diskon - FinansialApp{% endblock %} {% block page_title %}Voucher Diskon POS{% endblock %} {% block content %}
Voucher Baru
Rupiah potongan
0 = tak terbatas
Voucher dipakai kasir dengan mengetik kodenya di POS. Diskon dari voucher otomatis terotorisasi (tidak perlu PIN supervisor).
Daftar Voucher {{ voucher_rows|length }} Master POS
{% if voucher_rows %}
{% for v in voucher_rows %} {% set expired = v.berlaku_sampai and v.berlaku_sampai < today %} {% set habis = v.kuota and v.kuota > 0 and (v.terpakai or 0) >= v.kuota %} {% endfor %}
Kode Potongan Min. Belanja Kuota Berlaku Status Aksi
{{ v.kode }} {% if v.catatan %}
{{ v.catatan }}
{% endif %}
{% if v.tipe == 'PERSEN' %}{{ '%g'|format(v.nilai) }}% {% if v.maks_potongan and v.maks_potongan > 0 %}
maks {{ v.maks_potongan|rp }}
{% endif %} {% else %}{{ v.nilai|rp }}{% endif %}
{{ v.min_belanja|rp }} {% if v.kuota and v.kuota > 0 %}{{ v.terpakai or 0 }}/{{ v.kuota }}{% else %} ({{ v.terpakai or 0 }}){% endif %} {{ v.berlaku_dari|tgl if v.berlaku_dari else '—' }}
s/d {{ v.berlaku_sampai|tgl if v.berlaku_sampai else '—' }}
{% if not v.aktif %}Nonaktif {% elif expired %}Kedaluwarsa {% elif habis %}Kuota Habis {% else %}Aktif{% endif %}
{% else %}
Belum ada voucher. Buat lewat form di samping.
{% endif %}
{% endblock %}