Zeiterfassung update
This commit is contained in:
@@ -107,6 +107,7 @@ class TimerecordingEmployeeController extends mfBaseController
|
||||
$data['auto_workinghours'] = trim($r->auto_workinghours);
|
||||
$data['holidays'] = trim($r->holidays);
|
||||
$data['plushours'] = $plushours;
|
||||
$data['startdate'] = strtotime($r->startdate);
|
||||
|
||||
|
||||
if (!$data['user_id']) {
|
||||
|
||||
@@ -6,6 +6,7 @@ class TimerecordingEmployeeModel
|
||||
private $auto_workinghours;
|
||||
private $holidays;
|
||||
private $plushours;
|
||||
private $startdate;
|
||||
|
||||
|
||||
public static function find($data)
|
||||
@@ -130,10 +131,10 @@ class TimerecordingEmployeeModel
|
||||
$where = "1=1 ";
|
||||
|
||||
//var_dump($filter);exit;
|
||||
if (array_key_exists("network_id", $filter)) {
|
||||
$networkid = $filter['network_id'];
|
||||
if (is_numeric($networkid)) {
|
||||
$where .= " AND network_id=$networkid";
|
||||
if (array_key_exists("user_id", $filter)) {
|
||||
$userid = $filter['user_id'];
|
||||
if (is_numeric($userid)) {
|
||||
$where .= " AND user_id=$userid";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user