<%= settings.company_name || company || 'INTERNET SERVICE' %>
<%= settings.company_address || 'Pusat Layanan Internet Terpercaya' %>
<% if (settings.company_phone) { %>
<%= t('thermal.contact','Telp/WA:') %> <%= settings.company_phone %>
<% } %>
<%= t('thermal.receipt_title','STRUK BUKTI PEMBAYARAN') %>
<%= t('thermal.invoice_no','No. Faktur:') %>#INV-<%= String(invoice.id).padStart(4, '0') %>
<%= t('thermal.time','Waktu:') %><%= formatDateLocal(getNowLocal()) %>
<%= t('thermal.officer','Petugas:') %><%= collectorName || 'Kasir / Admin' %>
<%= t('thermal.cust_id','ID Pelg:') %><%= customer.customer_code || ('#' + customer.id) %>
<%= t('thermal.name','Nama:') %><%= customer.name %>
<% if (customer.phone) { %>
<%= t('thermal.phone','No. HP:') %><%= customer.phone %>
<% } %> <% if (customer.pppoe_username) { %>
PPPoE:<%= customer.pppoe_username %>
<% } %>
<%= t('thermal.package','Paket:') %><%= invoice.package_name || customer.package_name || 'Internet Broadband' %>
<%= t('thermal.period','Periode:') %><%= invoice.period_month %>/<%= invoice.period_year %>
<% if (Number(invoice.discount_amount||0) > 0) { %>
<%= t('thermal.discount','Diskon:') %>- Rp <%= Number(invoice.discount_amount).toLocaleString('id-ID') %>
<% } %>
<%= t('thermal.total_payment','TOTAL PEMBAYARAN') %>
<% const amt = invoice.amount != null ? invoice.amount : (customer.package_price != null ? customer.package_price : 0); %>
Rp <%= parseInt(amt || 0).toLocaleString('id-ID') %>
<%= t('thermal.paid','*** LUNAS ***') %>
<%= t('thermal.receipt_note','Simpan struk ini sebagai bukti pembayaran yang sah.') %>
<%= t('thermal.thanks','Terima Kasih atas Pembayaran Anda!') %>