fixing idxdept

This commit is contained in:
2025-08-28 13:09:05 +07:00
parent a74010325f
commit aa2e02beac
2 changed files with 17 additions and 5 deletions

View File

@ -719,10 +719,22 @@ class LogController
$rtn=true;
return $rtn;
}
public function fn_idxdept(){
$qry="update tbl_attendanceemployee a, tbl_employee e set a.idxdept = e.idxdept
where e._idx=a.idxemployee and a.idxdept=0";
$this->executeSP($qry);
$qry="update tbl_attendancelist a, tbl_employee e set a.idxdept = e.idxdept
where e._idx=a.idxemployee and a.idxdept=0";
$this->executeSP($qry);
return true;
}
}
$cl = new LogController();
$rtn =$cl->index();
$rtn =$cl->fn_idxdept();
#if(isset($_REQUEST['isgetdata'])){
# echo "indx";