{{ pos_s.pos_struk_label_kasir or 'Kasir' }}{{ sale.kasir_nama or '-' }}
{% if pos_s.pos_struk_show_customer and sale.customer %}
Customer{{ sale.customer }}
{% endif %}
{% if pos_s.pos_struk_show_payment %}
Bayar{{ sale.metode_bayar }}
{% endif %}
{% for it in items %}
{% set _net = it.subtotal_net if it.subtotal_net is not none else it.subtotal %}
{% set _disc = it.subtotal - _net %}
{{ it.deskripsi }}
{% if _disc > 0.5 %}
{# Baris 1 = qty x harga SEBELUM diskon (abu, harga & subtotal di-coret; qty TIDAK) #}
{% endfor %}
{% set item_total = namespace(v=0) %}
{% for it in items %}{% set item_total.v = item_total.v + it.subtotal %}{% endfor %}
{% if item_total.v > sale.total %}