{% extends 'base.html' %}{% load rp_format %} {% block title %}{{ trx.nomor }}{% endblock %} {% block content %}
{{ trx.nomor }}
{{ trx.tanggal|date:"l, d F Y H:i" }} · {{ trx.get_metode_bayar_display }} · {{ trx.get_sumber_display }}{% if trx.karyawan %} · dilayani {{ trx.karyawan.nama }}{% endif %}{% if trx.dibuat_oleh %} · input oleh {{ trx.dibuat_oleh.username }}{% endif %}
| Barang | Harga | Qty | Subtotal | {% if request.user.is_staff %}HPP | {% endif %}
|---|---|---|---|---|
{{ it.nama }} {{ it.sku|default:"" }}{% with d=diretur|get_item:it.id %}{% if d %} diretur {{ d }}{% endif %}{% endwith %} |
{{ it.harga|rp }} | {{ it.qty }} | {{ it.subtotal|rp }} | {% if request.user.is_staff %}{{ it.hpp|rp }} | {% endif %}
| Subtotal | {{ trx.subtotal|rp }} | {% if request.user.is_staff %}{% endif %} | ||
| Diskon | - {{ trx.diskon|rp }} | {% if request.user.is_staff %}{% endif %} | ||
| Ongkir + packing | {{ trx.ongkir|add:trx.biaya_packing|rp }} | {% if request.user.is_staff %}{% endif %} | ||
| Total | {{ trx.total|rp }} | {% if request.user.is_staff %}{{ trx.hpp_total|rp }} | {% endif %}||
| Laba kotor | {{ trx.laba_kotor|rp }} | |||
| Komisi {{ trx.karyawan.nama }} {% if trx.komisi_dibayar %}(dibayar {{ trx.komisi_dibayar_tgl|date:"d/m" }}){% else %}(belum dibayar){% endif %} | {{ trx.komisi|rp }} | |||
| Nomor | Tanggal | Barang | Alasan | Refund |
|---|---|---|---|---|
| {{ r.nomor }} | {{ r.tanggal|date:"d/m/Y" }} | {% for ir in r.items.all %}{{ ir.nama }} x{{ ir.qty }}{% if not forloop.last %}, {% endif %}{% endfor %} | {{ r.alasan|default:"-" }} | {{ r.total_refund|rp }} |
{{ trx.nama_customer }}
{{ trx.no_wa|default:"No. WA belum diisi" }}
{% if trx.sumber_pesanan %} Lihat pesanan online #{{ trx.sumber_pesanan.kode_ref }}{% endif %}