<%- include('partials/sidebar', { activePage: 'cashiers_reports', company }) %>
Laporan Kasir
<%= company %> <%= (typeof session !== 'undefined' && session.isCashier) ? t('admin.role.cashier', 'Kasir') : t('admin.role.admin', 'Admin') %>
<% if (msg) { %>
<%= msg.text %>
<% } %>
Filter
<% if (cashiers && cashiers.length > 1) { %> <% } else if (cashiers && cashiers.length === 1) { %> <%= cashiers[0].name %><%= cashiers[0].username ? (' (@' + cashiers[0].username + ')') : '' %> <% } %> <%= Number(summary?.count || 0) %> transaksi Rp <%= Number(summary?.total || 0).toLocaleString('id-ID') %> Tagihan: <%= Number(summary?.invoice_count || 0) %> (Rp <%= Number(summary?.invoice_total || 0).toLocaleString('id-ID') %>) Deposit Agent: <%= Number(summary?.topup_count || 0) %> (Rp <%= Number(summary?.topup_total || 0).toLocaleString('id-ID') %>)
Riwayat Transaksi
<% if (!rows || rows.length === 0) { %> <% } else { %> <% rows.forEach(r => { %> <% }) %> <% } %>
<%= t('collector.col_time','Waktu') %> Kasir Jenis Detail <%= t('collector.col_amount','Nominal') %> Catatan Ref
Belum ada transaksi kasir.
<%= r.at ? new Date(r.at).toLocaleString((lang || 'id') === 'en' ? 'en-US' : 'id-ID',{day:'2-digit',month:'short',hour:'2-digit',minute:'2-digit'}) : '-' %> <%= r.actor_name || '-' %> <% if (r.kind === 'agent_topup') { %> DEPOSIT <% } else { %> TAGIHAN <% } %> <% if (r.kind === 'agent_topup') { %>
<%= r.agent_name || '-' %> <%= r.agent_username ? '(@' + r.agent_username + ')' : '' %>
<% } else { %>
<%= r.customer_name || '-' %>
<%= r.customer_phone || '' %><%= r.period_month && r.period_year ? (' • ' + r.period_month + '/' + r.period_year) : '' %><%= r.package_name ? (' • ' + r.package_name) : '' %>
<% } %>
Rp <%= Number(r.amount||0).toLocaleString('id-ID') %> <%= r.notes ? r.notes : '-' %> #<%= r.ref_id %>