@@ -31,7 +31,7 @@ class HrEmployeeProfile extends Model
'photo_path','notes',
];
publicstaticfunctiongetEmploymentStatuses():array
publicstaticfunctiongetStatuses():array
{
return[
'active'=>'نشط',
...
...
@@ -44,6 +44,11 @@ class HrEmployeeProfile extends Model
];
}
publicstaticfunctiongetEmploymentStatuses():array
{
returnstatic::getStatuses();
}
publicstaticfunctiongetEmploymentTypes():array
{
return[
...
...
@@ -107,7 +112,7 @@ class HrEmployeeProfile extends Model
{
$db=App::getInstance()->db();
$rows=$db->select(
"SELECT id, employee_id FROM hr_employee_profiles WHERE employment_status IN ('active','on_probation') AND is_archived = 0"
"SELECT id, employee_id, first_name_ar, last_name_ar, employee_number FROM hr_employee_profiles WHERE employment_status IN ('active','on_probation') AND is_archived = 0 ORDER BY first_name_ar ASC"