<%- include('partials/sidebar', { activePage: 'vouchers_discounts', company }) %>
Voucher Diskon & Biaya Pasang
<%= (typeof session !== 'undefined' && session.isCashier) ? 'Kasir' : 'Admin' %>
<% if (msg) { %>
<%= msg.text %>
<% } %>
Biaya Pasang (Global)
Dipakai sebagai komponen "biaya pasang" pada estimasi pendaftaran. Boleh 0.
<%= editVoucher ? ('Edit Voucher: ' + editVoucher.code) : 'Tambah Voucher Diskon' %>
<% if (editVoucher) { %><% } %>
Untuk tipe persen (0 = tanpa batas).
0 = tanpa minimal.
0 = tanpa batas (berlaku selamanya).
<% if (editVoucher) { %><%= t('admin.vd.cancel','Batal') %><% } %>
Daftar Voucher (<%= vouchers.length %>)
<% if (!vouchers.length) { %> <% } %> <% vouchers.forEach(function(v){ %> <% }); %>
<%= t('admin.vd.code','Kode') %> <%= t('admin.vd.type','Tipe') %> <%= t('admin.vd.value','Nilai') %> Maks Diskon Min Tagihan <%= t('admin.vd.used','Dipakai') %> <%= t('admin.vd.status','Status') %> <%= t('admin.vd.note','Catatan') %> <%= t('admin.vd.action','Aksi') %>
<%= t('admin.vd.empty','Belum ada voucher.') %>
<%= v.code %> <%= v.type === 'percent' ? 'Persen' : 'Nominal' %> <%= v.type === 'percent' ? (v.value + ' %') : ('Rp ' + Number(v.value).toLocaleString('id-ID')) %> <%= Number(v.max_discount) > 0 ? ('Rp ' + Number(v.max_discount).toLocaleString('id-ID')) : '-' %> <%= Number(v.min_purchase) > 0 ? ('Rp ' + Number(v.min_purchase).toLocaleString('id-ID')) : '-' %> <%= v.used_count %><%= Number(v.max_uses) > 0 ? (' / ' + v.max_uses) : '' %> <%= v.active ? 'Aktif' : 'Nonaktif' %> <%= v.note || '' %>
Edit Voucher