{% extends "base.html" %} {% block title %}Performa Penjualan - FinansialApp{% endblock %} {% block page_title %}Top Performa Produk & Penjualan{% endblock %} {% block content %}
{% include '_performa_help_modal.html' %} {% macro pct(v) -%}{{ '%.1f' % (v or 0) }}%{%- endmacro %} {% macro metric_card(label, value, icon, color, sub='') -%}
{{ label }}
{{ value }}
{% if sub %}
{{ sub }}
{% endif %}
{%- endmacro %}
s/d
Bulan Ini
{{ sd|tgl }} s/d {{ ed|tgl }} | Metrik produk memakai item penjualan dan retur yang terhubung ke inventory.
{{ metric_card('Omzet Produk Bersih', report.totals.omzet_net|rp, 'fa-sack-dollar', '#16a34a', 'Setelah retur produk') }} {{ metric_card('Margin Kotor Produk', report.totals.margin|rp, 'fa-chart-line', '#2563eb', pct(report.totals.margin_pct) ~ ' dari omzet produk') }} {{ metric_card('Qty Terjual Bersih', (report.totals.qty_net|qty), 'fa-boxes-stacked', '#7c3aed', report.totals.active_products ~ ' produk aktif') }} {{ metric_card('Rata-rata Order', report.totals.avg_order|rp, 'fa-receipt', '#d97706', report.totals.trx_count ~ ' transaksi penjualan') }}
Diskon Item
{{ report.totals.item_discount|rp }}
{{ pct(report.totals.discount_rate) }} dari bruto produk
Retur Produk
{{ report.totals.return_net|rp }}
{{ pct(report.totals.return_rate) }} dari penjualan produk
HPP Produk Bersih
{{ report.totals.hpp_net|rp }}
Estimasi modal barang terjual
Revenue Buku Besar
{{ pnl.rev|rp }}
Termasuk jasa / non-SKU
Highlight
Top omzet {{ report.insights.top_omzet.nama if report.insights.top_omzet else '-' }}
Top margin {{ report.insights.top_margin.nama if report.insights.top_margin else '-' }}
Top qty {{ report.insights.top_qty.nama if report.insights.top_qty else '-' }}
Kategori terbaik {{ report.insights.top_category.kategori if report.insights.top_category else '-' }}
Customer terbesar {{ report.insights.best_customer.nama if report.insights.best_customer else '-' }}
Margin produk dihitung dari omzet produk bersih dikurangi HPP mutasi stok. Untuk penjualan umum/non-SKU, nilai tetap muncul di Revenue Buku Besar.
Performa Kategori
{% for c in report.categories[:6] %} {% else %} {% endfor %}
KategoriProdukOmzetKontribusiMargin
{{ c.kategori }} {{ c.produk_count }} {{ c.omzet_net|rp }}
{{ pct(c.share) }}
{{ c.margin|rp }}
{{ pct(c.margin_pct) }}
Belum ada data produk pada periode ini.
Top Performa Produk
{% for p in report.products[:15] %} {% else %} {% endfor %}
Rank Produk Kategori Qty Net Omzet Net HPP Margin Kontribusi Retur
{{ loop.index }}
{{ p.nama }}
{{ p.kode }}{% if p.varian %} | {{ p.varian }}{% endif %}
{{ p.kategori }} {{ p.qty_net|qty }} {{ p.satuan }} {{ p.omzet_net|rp }} {{ p.hpp_net|rp }}
{{ p.margin|rp }}
{{ pct(p.margin_pct) }}
{{ pct(p.share) }}
{{ p.return_net|rp }}
{{ pct(p.return_rate) }}
Belum ada penjualan produk pada periode ini.
Top Customer
{% for c in report.customers %} {% else %} {% endfor %}
CustomerTransaksiOmzetMarginAOV
{{ c.nama }} {{ c.trx_count }} {{ c.omzet|rp }} {{ c.margin|rp }}
{{ pct(c.margin_pct) }}
{{ c.avg_order|rp }}
Belum ada customer pada periode ini.
Tren Bulanan Produk
{% for t in report.trends %} {% else %} {% endfor %}
PeriodeTransaksiPenjualan ProdukReturNet
{{ t.periode }} {{ t.trx_count }} {{ t.omzet_produk|rp }} {{ t.retur_produk|rp }}
{{ pct(t.return_rate) }}
{{ t.omzet_net|rp }}
Belum ada tren bulanan pada periode ini.
{% endblock %}