{% load humanize i18n static %} {% language 'en-US' %} {% csrf_token %}
| # | Pasien | Voucher | Pembayaran | Diskon | Status | Tanggal | {% for data in voucherlisthistory %}
|---|---|---|---|---|---|---|
| {{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"}} |