| ${r.tanggal} | @@ -92,8 +100,13 @@ $(function(){ }); $('#tableLedger tbody').html(html); + Object.keys(res.summary || {}).forEach(function(key){ + $('[data-summary="'+key+'"]').text(Number(res.summary[key] || 0).toLocaleString('id-ID')); + }); - },'json'); + },'json').fail(function(xhr){ + Swal.fire('Error', xhr.responseJSON?.message || 'Data Buku Besar gagal dimuat.', 'error'); + }); } @@ -118,7 +131,7 @@ $(function(){ + String(now.getDate()).padStart(2, '0'); const account_id = $('#account_id').val(); - const start_date = $('#start_date').val() || '0000-00-00'; + const start_date = $('#start_date').val() || '1900-01-01'; const end_date = $('#end_date').val() || today; let btn = $(this); @@ -153,4 +166,4 @@ $(function(){ }); }); }); - \ No newline at end of file + diff --git a/application/views/companies/index.php b/application/views/companies/index.php index 262a3e5..34c34f7 100644 --- a/application/views/companies/index.php +++ b/application/views/companies/index.php @@ -1,7 +1,7 @@ security->get_csrf_token_name();$csrfHash=$this->security->get_csrf_hash(); ?>|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Kode | Komponen | Jenis | Metode | Default | Mapping | Status |
|---|---|---|---|---|---|---|
| =html_escape($c->code)?> | =html_escape($c->name)?> | =html_escape($c->component_type)?> | =html_escape($methodLabels[$c->calculation_method]??$c->calculation_method)?> | Rp =number_format($c->default_value??$c->fixed_amount,2,',','.')?> | =html_escape(($c->expense_account_id?:'mapping umum').' / '.($c->liability_account_id?:'mapping umum'))?> | =$c->is_active?'Aktif':'Nonaktif'?> |
| Posisi | Komponen | Metode | Nilai | Efektif | Status |
|---|---|---|---|---|---|
| Belum ada template posisi. | |||||
| =html_escape($x->position_name)?> | =html_escape($x->component_code.' - '.$x->component_name)?> | =html_escape($methodLabels[$x->calculation_method]??$x->calculation_method)?> | Rp =number_format($x->amount_override,2,',','.')?> | =html_escape($x->effective_from)?>=!empty($x->effective_to)?' s.d. '.html_escape($x->effective_to):''?> | =$x->is_active?'Aktif':'Nonaktif'?> |
| Posisi | Komponen | Metode | Nilai | Efektif | Status |
|---|---|---|---|---|---|
| Belum ada template posisi. | |||||
| =html_escape($x->position_name)?> | =html_escape($x->component_code.' - '.$x->component_name)?> | =html_escape($methodLabels[$x->calculation_method]??$x->calculation_method)?> | Rp =number_format($x->amount_override,2,',','.')?> | =html_escape($x->effective_from)?>=!empty($x->effective_to)?' s.d. '.html_escape($x->effective_to):''?> | =$x->is_active?'Aktif':'Nonaktif'?> |
| Aturan | Kondisi | Metode | Toleransi | Tarif | Komponen | Efektif |
|---|---|---|---|---|---|---|
| =html_escape($r->rule_name)?> | =html_escape($r->condition_type)?> | =html_escape($r->calculation_method)?> | =number_format($r->tolerance_minutes)?> menit | =number_format($r->rate_value,2,',','.')?> | =html_escape($r->component_name?:'Tidak memotong')?> | =html_escape($r->effective_from)?> |
Akun jurnal utama dikelola melalui System Account Mapping. Akun khusus dapat dipilih pada masing-masing komponen.
| Periode | Karyawan | Komponen | Jenis | Nominal | Keterangan | Status | Aksi |
|---|---|---|---|---|---|---|---|
| Belum ada penyesuaian periode. | |||||||
| =html_escape($a->period_name)?> | =html_escape($a->full_name)?>=html_escape($a->employee_code)?> | =html_escape($a->component_name)?> | =html_escape($a->adjustment_type==='earning'?'Pendapatan':'Potongan')?> | Rp =number_format($a->amount,2,',','.')?> | =html_escape($a->notes)?> | =html_escape($statusLabels[$a->workflow_status]??$a->workflow_status)?> | workflow_status==='draft'):?>- |
| Periode | Karyawan | Komponen | Jenis | Nominal | Keterangan | Status | Aksi |
|---|---|---|---|---|---|---|---|
| Belum ada penyesuaian periode. | |||||||
| =html_escape($a->period_name)?> | =html_escape($a->full_name)?>=html_escape($a->employee_code)?> | =html_escape($a->component_name)?> | =html_escape($a->adjustment_type==='earning'?'Pendapatan':'Potongan')?> | Rp =number_format($a->amount,2,',','.')?> | =html_escape($a->notes)?> | =html_escape($statusLabels[$a->workflow_status]??$a->workflow_status)?> | can_manage)&&$a->workflow_status==='draft'):?>- |
Tanggal mencakup tanggal dibawa, dipasang, atau dikembalikan.
| No | Dokumen | Teknisi | Barang | Barcode / SN | Pemilik | Qty | Customer | Posisi | Status | Kondisi | Keterangan | Aksi |
|---|