hr dan payroll

This commit is contained in:
Wian Drs
2026-09-15 10:38:43 +07:00
parent 5e1fd11410
commit 8fedd39d8f
47 changed files with 1409 additions and 370 deletions
+7 -5
View File
@@ -9,13 +9,15 @@ class AccountModel extends CI_Model
return array();
}
$rows = $this->db
->select('id')
$this->db->select('id')
->where_in('id', array_values(array_unique($ids)))
->where('is_active', 1)
->where('allow_posting', 1)
->get('accounts')
->result_array();
->where('allow_posting', 1);
if ($this->db->field_exists('company_id', 'accounts')) {
$companyId = isset($this->companycontext) ? (int)$this->companycontext->id() : (int)$this->session->userdata('company_id');
$this->db->where('company_id', $companyId);
}
$rows = $this->db->get('accounts')->result_array();
return array_map('intval', array_column($rows, 'id'));
}
}