{% if not preview|default(false) %} {% else %}
👁️ Mode Preview - Data di bawah adalah contoh. ← Kembali ke Pengaturan
{% endif %}
🧾 Struk Mode Aktif Lebar kertas:
{% if inv_s.inv_logo %}
{% endif %}
{{ inv_s.inv_nama }}
{% if inv_s.inv_tagline %}
{{ inv_s.inv_tagline }}
{% endif %}
{% if inv_s.inv_alamat %}{{ inv_s.inv_alamat }}
{% endif %} {% if inv_s.inv_telepon %}☎ {{ inv_s.inv_telepon }}  {% endif %} {% if inv_s.inv_email %}✉ {{ inv_s.inv_email }}{% endif %}
INVOICE
{{ inv.nomor }}
{% if pay_stamp == 'LUNAS' %} LUNAS {% elif pay_stamp == 'SEBAGIAN' %} SEBAGIAN {% elif pay_stamp == 'BELUM LUNAS' %} BELUM LUNAS {% else %} DRAFT {% endif %}
Ditagihkan Kepada
{{ inv.pelanggan }}
{% if inv.alamat_pelanggan %}
{{ inv.alamat_pelanggan }}
{% endif %} {% if inv.telepon_pelanggan %}
☎ {{ inv.telepon_pelanggan }}
{% endif %}
Detail Invoice
Tanggal{{ inv.tanggal|tgl }}
Jatuh Tempo{{ inv.jatuh_tempo|tgl if inv.jatuh_tempo else '-' }}
Term of Payment {{ actual_top }} hari{% set tn = inv.top_note or inv_s.inv_top_note %}{% if tn %} ({{ tn }}){% endif %}
{% for it in items %} {% endfor %} {% if inv.diskon %} {% endif %} {% if inv.ongkir %} {% endif %} {% if inv.biaya_lain %} {% endif %} {% if pajak_pct and pajak_pct > 0 %} {% endif %} {% set pph22_n = pph22_nom|default(0) %} {% set pph22_p = pph22_pct|default(0) %} {% if (pph23_pct and pph23_pct > 0) or (pph22_p and pph22_p > 0) %} {% if pph22_p and pph22_p > 0 %} {% endif %} {% if pph23_pct and pph23_pct > 0 %} {% endif %} {% endif %} {% if show_payment %} {% if pay_dp > 0 %} {% endif %} {% if pay_sisa > 0 %} {% else %} {% endif %} {% endif %}
# Deskripsi Qty Sat. Harga Satuan Diskon Subtotal
{{ loop.index }} {{ it.deskripsi }} {{ it.qty|qty }} {{ it.satuan }} {{ it.harga_satuan|rp }} {% if it.diskon_item %}{{ it.diskon_item|rp }}{% else %}-{% endif %} {{ it.subtotal|rp }}

Subtotal {{ subtotal|rp }}
Diskon - {{ inv.diskon|rp }}
Ongkir {{ inv.ongkir|rp }}
Biaya Lain {{ inv.biaya_lain|rp }}
Pajak ({{ pajak_pct|round(2) }}%) {{ pajak_nom|rp }}
TOTAL {{ total|rp }}
Dipotong PPh 22 ({{ pph22_p|round(2) }}%) - {{ pph22_n|rp }}
Dipotong PPh 23 ({{ pph23_pct|round(2) }}%) - {{ pph23_nom|rp }}
Diterima Bersih {{ (total - pph23_nom - pph22_n)|rp }}
Sudah Dibayar {{ pay_dp|rp }}
Sisa Tagihan {{ pay_sisa|rp }}
✓ Lunas Rp 0
{% if inv_s.inv_rek_list %}
📋 Informasi Pembayaran
{% for r in inv_s.inv_rek_list %}
{{ r.bank }}   {{ r.norek }} {% if r.an %}  ·  a.n. {{ r.an }}{% endif %}
{% endfor %}
{% endif %} {% if inv.catatan %} {% elif inv_s.inv_catatan %} {% endif %} {% if inv_s.inv_terms %}
Syarat & Ketentuan
{{ inv_s.inv_terms }}
{% endif %}
Hormat kami,
{{ inv_s.inv_nama }}
{{ inv_s.inv_nama }}
{% if inv_s.inv_tagline %}
{{ inv_s.inv_tagline }}
{% endif %} {% if inv_s.inv_alamat %}
{{ inv_s.inv_alamat }}
{% endif %} {% if inv_s.inv_telepon %}
{{ inv_s.inv_telepon }}
{% endif %} {% if inv_s.inv_email %}
{{ inv_s.inv_email }}
{% endif %}

No  : {{ inv.nomor }}
Tgl  : {{ inv.tanggal|tgl }}
Kpd  : {{ inv.pelanggan }}
{% if inv.telepon_pelanggan %}
Telp : {{ inv.telepon_pelanggan }}
{% endif %}

{% for it in items %}
{{ it.deskripsi }}
{{ it.qty|qty }} {{ it.satuan }} × {{ it.harga_satuan|rp }} {{ it.subtotal|rp }}
{% if it.diskon_item %}
Diskon: -{{ it.diskon_item|rp }}
{% endif %}
{% endfor %}
Subtotal{{ subtotal|rp }}
{% if inv.diskon %}
Diskon-{{ inv.diskon|rp }}
{% endif %} {% if inv.ongkir %}
Ongkir{{ inv.ongkir|rp }}
{% endif %} {% if inv.biaya_lain %}
Biaya Lain{{ inv.biaya_lain|rp }}
{% endif %} {% if pajak_pct and pajak_pct > 0 %}
Pajak ({{ pajak_pct|round(2) }}%){{ pajak_nom|rp }}
{% endif %}
TOTAL{{ total|rp }}
{% set pph22_n_s = pph22_nom|default(0) %} {% set pph22_p_s = pph22_pct|default(0) %} {% if (pph23_pct and pph23_pct > 0) or (pph22_p_s and pph22_p_s > 0) %}
{% if pph22_p_s and pph22_p_s > 0 %}
Pot. PPh 22 ({{ pph22_p_s|round(2) }}%)-{{ pph22_n_s|rp }}
{% endif %} {% if pph23_pct and pph23_pct > 0 %}
Pot. PPh 23 ({{ pph23_pct|round(2) }}%)-{{ pph23_nom|rp }}
{% endif %}
Diterima Bersih{{ (total - pph23_nom - pph22_n_s)|rp }}
{% endif %} {% if show_payment %} {% if pay_dp > 0 %}
Sudah Dibayar{{ pay_dp|rp }}
{% endif %} {% if pay_sisa > 0 %}
SISA TAGIHAN{{ pay_sisa|rp }}
{% else %}
*** L U N A S ***
{% endif %} {% endif %} {% if inv_s.inv_rek_list %}
Pembayaran via:
{% for r in inv_s.inv_rek_list %}
{{ r.bank }}: {{ r.norek }}{% if r.an %} ({{ r.an }}){% endif %}
{% endfor %}
{% endif %} {% if inv.catatan or inv_s.inv_catatan %}
{{ inv.catatan or inv_s.inv_catatan }}
{% endif %}
Terima kasih atas kepercayaan Anda!