<%- include('partials/sidebar', { activePage: 'cashiers_reports', company }) %>
<%= t('admin.cr.title','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) %> <%= t('admin.cr.tx','transaksi') %> Rp <%= Number(summary?.total || 0).toLocaleString('id-ID') %> <%= t('admin.cr.invoice','Tagihan:') %> <%= Number(summary?.invoice_count || 0) %> (Rp <%= Number(summary?.invoice_total || 0).toLocaleString('id-ID') %>) <%= t('admin.cr.topup','Deposit Agent:') %> <%= Number(summary?.topup_count || 0) %> (Rp <%= Number(summary?.topup_total || 0).toLocaleString('id-ID') %>)
<%= t('admin.cr.history','Riwayat Transaksi') %>
<% if (!rows || rows.length === 0) { %> <% } else { %> <% rows.forEach(r => { %> <% }) %> <% } %>
<%= t('collector.col_time','Waktu') %> Kasir <%= t('admin.cr.th_type','Jenis') %> <%= t('admin.cr.th_detail','Detail') %> <%= t('collector.col_amount','Nominal') %> <%= t('admin.cr.th_note','Catatan') %> Ref
Belum ada <%= t('admin.cr.tx','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 { %> <%= t('admin.cr.badge_invoice','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 %>