Files
accounting_dev_v2/application/views/taxes/index.php
T
2026-09-11 16:03:00 +07:00

3 lines
3.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div class="container-fluid py-3"><h4>Pajak</h4><p class="text-muted">Master tarif configurable, register pajak masukan/keluaran, withholding, periode dan pelaporan.</p><?php foreach(array('success','error')as$f)if($this->session->flashdata($f)):?><div class="alert alert-<?=$f==='success'?'success':'danger'?>"><?=html_escape($this->session->flashdata($f))?></div><?php endif?><div class="row g-3"><div class="col-lg-6"><div class="card h-100"><div class="card-header">Master Kode Pajak</div><div class="card-body"><form method="post" action="<?=base_url('taxes/code')?>"><div class="row g-2"><div class="col-4"><input class="form-control" name="code" placeholder="Kode" required></div><div class="col-8"><input class="form-control" name="name" placeholder="Nama" required></div><div class="col-4"><select class="form-select" name="tax_type"><option value="sales">Penjualan</option><option value="purchase">Pembelian</option><option value="withholding">Withholding</option><option value="payroll">Payroll</option></select></div><div class="col-4"><select class="form-select" name="calculation_method"><option value="exclusive">Exclusive</option><option value="inclusive">Inclusive</option></select></div><div class="col-4"><input class="form-control" type="number" step=".000001" name="rate" placeholder="Tarif %"></div><div class="col-6"><input class="form-control" type="date" name="effective_from" value="<?=date('Y-m-01')?>"></div><div class="col-6"><input class="form-control" type="date" name="effective_to"></div><div class="col-12"><input class="form-control" name="formula_expression" placeholder="Formula opsional; kosong = DPP × tarif"></div><div><button class="btn btn-primary">Simpan</button></div></div></form></div></div></div><div class="col-lg-6"><div class="card h-100"><div class="card-header">Periode & Pelaporan</div><div class="card-body"><form method="post" action="<?=base_url('taxes/period')?>"><div class="row g-2"><div class="col-4"><input class="form-control" type="month" name="period" value="<?=$period?>"></div><div class="col-4"><select class="form-select" name="tax_type"><option value="all">Semua</option><option value="sales">Penjualan</option><option value="purchase">Pembelian</option><option value="withholding">Withholding</option><option value="payroll">Payroll</option></select></div><div class="col-4"><select class="form-select" name="status"><option>open</option><option>reviewed</option><option>filed</option><option>closed</option></select></div><div class="col-6"><input class="form-control" name="filing_reference" placeholder="Referensi pelaporan"></div><div class="col-6"><input class="form-control" name="notes" placeholder="Catatan"></div><div><button class="btn btn-warning">Update Periode</button> <a class="btn btn-success" href="<?=base_url('taxes/export/'.$period)?>">Export CSV</a></div></div></form></div></div></div></div>
<div class="card mt-3"><div class="card-header d-flex justify-content-between"><span>Tax Register <?=$period?></span><form><input type="month" name="period" value="<?=$period?>" onchange="this.form.submit()"></form></div><div class="table-responsive"><table class="table table-sm mb-0"><tr><th>Tanggal</th><th>Kode</th><th>Arah</th><th>Sumber</th><th>Faktur</th><th>DPP</th><th>Pajak</th><th>Status</th></tr><?php foreach($register as$r):?><tr><td><?=$r->tax_date?></td><td><?=$r->code?></td><td><?=$r->direction?></td><td><?=$r->source_type?>#<?=$r->source_id?></td><td><?=html_escape($r->tax_invoice_no?:'-')?></td><td class="text-end"><?=number_format($r->tax_base,0,',','.')?></td><td class="text-end"><?=number_format($r->tax_amount,0,',','.')?></td><td><?=$r->status?></td></tr><?php endforeach?></table></div></div></div>