{% load humanize i18n static %} {% language 'en-US' %} Label Obat
{% comment %} {{ info_dasar_faskes.nama }}
{% endcomment %} {% comment %}
{{ info_dasar_faskes.alamat }}
{% endcomment %}
{{ info_dasar_faskes.alamat }}
{% comment %}
081274875567
{% endcomment %}
{{ pendaftaran.waktu_masuk|date:"d M Y" }}
{{ pendaftaran.waktu_masuk|time:"H:i:s" }}
Order ID : {{info_dasar_faskes.kode_klinik}}{{ pendaftaran.kode_booking }}
Tanggal : {{ pendaftaran.waktu_masuk|date:"d M Y H:i" }}
Pasien : {{ pendaftaran.pasien.first_name }}
Dokter : {{ pendaftaran.dokter.first_name }}
Keterangan : {% if pembayaranselesai.kembalian >= 0 %}LUNAS{% else %}BELUM LUNAS / DP{% endif %}
{% if invoicebarang %}
Terapi Obat
{% for y in invoicebarang %} {% if info_dasar_faskes.is_paket == 1 %}
{{ y.barang.nama }}
{{ y.kuantitas|floatformat|default:"0" }}
{% else %}
{{ y.barang.nama }}
{{ y.kuantitas|floatformat|default:"0" }}
{%if y.diskon_pembelian and y.diskon_pembelian != "0" %}{% widthratio y.barang.harga_jual 1 y.kuantitas as summary %}{{summary|floatformat:"0"|intcomma}}
{%endif%}{{y.total_harga|floatformat:"0"|intcomma}}
{% endif %} {% endfor%} {% for y in invoicebarang %} {% if info_dasar_faskes.is_paket == 1 %}
{% with rowspan_value=invoicebarang|length %} {% if forloop.first %}
{{info_paket}}
{{harga_paket|intcomma}}
{% endif %} {% endwith %}
{% endif %} {% endfor %} {% comment %} {% endcomment %} {% comment %} {% for y in invoicebarang %} {% with rowspan_value=invoicebarang|length %} {% if rowspan_value > 3 %} {% if forloop.first %} {% endif %} {% elif rowspan_value <= 1 %} {% if forloop.first %} {% endif %} {% else %} {% if forloop.first %} {% endif %} {% endif %} {% endwith %} {% with rowspan_value=invoicebarang|length %} {% if rowspan_value > 3 %} {% if forloop.first %} {% endif %} {% elif rowspan_value <= 1 %} {% if forloop.first %} {% endif %} {% else %} {% if forloop.first %} {% endif %} {% endif %} {% endwith %} {% endfor %} {% endcomment %} {% comment %} {% else %} {% for y in invoicebarang %} {% endfor %} {% endif %}{% endcomment %} {% endif %}
Layanan Diberikan
{% if invoicelayanan %} {% for x in invoicelayanan %}
{{ x.tarif_layanan.nama }}
{{ x.kuantitas|floatformat|default:"0" }}
{%if x.diskon_pembelian and x.diskon_pembelian != "0" %}{% widthratio x.tarif_layanan.harga 1 x.kuantitas as summary %}{{summary|floatformat:"0"|intcomma}}
{%endif%}{{x.total_harga|floatformat:"0"|intcomma}}
{% endfor%} {% else %}
Konsultasi saja
0
Rp 0
{% endif%}
Layanan Lab Diberikan
{% if invoicelab %} {% for x in invoicelab %}
{{ x.tarif_lab.nama }}
{{ x.kuantitas|floatformat|default:"0" }}
{%if x.diskon_pembelian != 0%}{% widthratio x.tarif_lab.harga 1 x.kuantitas as summary %}{{summary|floatformat:"0"|intcomma}}
{%endif%}{{x.total_harga|floatformat:"0"|intcomma}}
{% endfor%} {% endif%} {% if is_voucher %} {% endif %}
---------------------------------------------------------------Obat-------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------- Paket 1 : Rp 50,000 ---------------------------------------------------------------------------------------------------------------------------------
{{ y.barang.nama }}Paket 2100,000Rp {{y.barang.harga_jual|floatformat:0|intcomma}}Paket 150,000100,000 Rp {{sumOfBarang|floatformat:0|intcomma}}
SUB TOTAL Rp {{ summaryinvoicebarang|floatformat:0|intcomma}}
-------------------------------------------------------------Layanan-----------------------------------------------------------
Nama Barang Harga Kuantitas Jumlah
{{ y.barang.nama }} {{ y.barang.harga_jual|floatformat:0}} {{ y.kuantitas|floatformat|default:"0" }} {{y.total_harga}}  {% widthratio y.barang.harga_jual 1 y.kuantitas as summary %}{{ summary}}
SUB TOTAL Rp {{ summaryinvoicebarang|floatformat:0}}
Administrasi Pendaftaran {% if semuapendaftaran.is_new_pasien == True %} Rp {{info_dasar_faskes.fee_new_pasien|floatformat:0|intcomma}} {% else %} Rp {{info_dasar_faskes.fee_old_pasien|floatformat:0|intcomma}} {% endif %}
TOTAL KESELURUHAN Rp {{ allsummary|floatformat:0|intcomma}}
DISKON - {{ potongan|floatformat:0|intcomma }}
UANG PASIEN Rp {{ pembayaranselesai.uang_pasien|floatformat:0|intcomma}}
KEMBALIAN Rp {{ pembayaranselesai.kembalian|floatformat:0|intcomma}}

{% endlanguage %}