{% load humanize i18n static %} {% language 'en-US' %} {% csrf_token %}
List Voucher
{% for data in voucherlisthistory %} {%endfor%}
# Pasien Voucher Pembayaran Diskon Status Tanggal
{{forloop.counter}} {{data.pendaftaran.pasien.first_name}} {{data.voucher.kode}} Rp{{data.pembayaran.total_pembayaran|floatformat:0|intcomma}} {% if data.voucher.tipe_diskon != "%" %}-{%endif%}{{ data.voucher.diskon|floatformat:0|intcomma }} {% if data.voucher.tipe_diskon == "%" %}%{%endif%} {%if data.status == "1"%}Dibayar{%else%}Belum bayar{%endif%} {{data.created_at|date:"d M Y"}}
{% endlanguage %}