Diverse aanpassing nav mail Peter
This commit is contained in:
@@ -70,6 +70,7 @@ class EmployeeHoursController extends MY_Controller {
|
||||
}
|
||||
elseif ( $hourType == 'OFFERS' )
|
||||
{
|
||||
$data['projectemployee_id'] = $data['employee_id'];
|
||||
unset( $data['employee_id'] );
|
||||
$data['hourtype_id'] = $data['hourtype_id'] - 8;
|
||||
|
||||
|
||||
@@ -27,14 +27,14 @@ class ProjectsController extends MY_Controller {
|
||||
|
||||
}
|
||||
|
||||
public function getAllProjects( )
|
||||
public function getAllProjects()
|
||||
{
|
||||
$archive = $this->clean_input( 'archive' );
|
||||
$search = $this->clean_input( 'search' );
|
||||
$order = $this->clean_input( 'order' );
|
||||
$direction = $this->clean_input( 'direction' );
|
||||
|
||||
$projects = Project::getAllProjects( $archive, $search, $order, $direction );
|
||||
$projects = Project::getAllProjects( $archive, $search, $order, $direction );
|
||||
|
||||
$this->json( $projects );
|
||||
}
|
||||
@@ -46,6 +46,9 @@ class ProjectsController extends MY_Controller {
|
||||
$project->invoiceDetails =
|
||||
$this->Invoices_model->getOutstandingPerProject( $project->id );
|
||||
|
||||
$project->hourTotals =
|
||||
Projecthour::getTotalHoursPerProject( $project->id );
|
||||
|
||||
$this->json( $project );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user