Diverse aanpassing nav mail Peter
This commit is contained in:
@@ -27,9 +27,9 @@ class ReportsController extends MY_Controller {
|
||||
|
||||
}
|
||||
|
||||
public function recapProjects()
|
||||
public function recapProjects( $archive )
|
||||
{
|
||||
$recapprojects = new Recapprojects();
|
||||
$recapprojects = new Recapprojects( $archive );
|
||||
|
||||
$projects = $recapprojects->getProjects();
|
||||
|
||||
@@ -51,17 +51,17 @@ class ReportsController extends MY_Controller {
|
||||
|
||||
$result = $query->result();
|
||||
|
||||
foreach($result as $user)
|
||||
foreach ( $result as $user )
|
||||
{
|
||||
$user->targethours = Employeetarget::getTargetHoursPerEmployee( $user->user_id, $year, $month);
|
||||
$user->targethours = Employeetarget::getTargetHoursPerEmployee( $user->user_id, $year, $month );
|
||||
}
|
||||
|
||||
$this->json( $result );
|
||||
}
|
||||
|
||||
public function getInvoiceOverview( $year = FALSE )
|
||||
public function getInvoiceOverview( $year = FALSE, $orderType, $orderDirection, $archive )
|
||||
{
|
||||
$invoices = new Invoices( $year );
|
||||
$invoices = new Invoices( $year, $orderType, $orderDirection, $archive );
|
||||
|
||||
$invoiceReport = $invoices->getInvoiceReport();
|
||||
|
||||
@@ -74,7 +74,7 @@ class ReportsController extends MY_Controller {
|
||||
|
||||
$invoiceReport = $invoices->getInvoiceReport();
|
||||
|
||||
new InvoiceSpreadsheet($invoiceReport);
|
||||
new InvoiceSpreadsheet( $invoiceReport );
|
||||
}
|
||||
|
||||
public function saveCurrentFinnacialYear( $projectID )
|
||||
|
||||
Reference in New Issue
Block a user