save employeehours with uuid

This commit is contained in:
2022-02-01 15:57:17 +01:00
parent 32fb520739
commit a43450556d
7 changed files with 91 additions and 73 deletions
@@ -66,7 +66,7 @@ class EmployeeHoursController extends MY_Controller {
$data['hourtype_id'] = $data['hourtype_id'] - 8;
$employeehourID = Projecthour::saveProjecthour( $employeehourID, $data );
$employeehourID = Projecthour::saveProjecthour( $data );
}
elseif ( $hourType == 'OFFERS' )
{
@@ -74,14 +74,13 @@ class EmployeeHoursController extends MY_Controller {
unset( $data['employee_id'] );
$data['hourtype_id'] = $data['hourtype_id'] - 8;
$employeehourID = Projecthour::saveProjecthour( $employeehourID, $data );
$employeehourID = Projecthour::saveProjecthour( $data );
}
else
{
$employeehourID = Employeehour::saveEmployeehour( $employeehourID, $data );
$employeehourID = Employeehour::saveEmployeehour( $data );
}
$this->json( ['employeehourID' => $employeehourID] );
}
@@ -101,4 +100,4 @@ class EmployeeHoursController extends MY_Controller {
$this->json( ['result' => TRUE] );
}
}
}