diversen dashboard
This commit is contained in:
@@ -42,12 +42,15 @@ class DashboardController extends MY_Controller {
|
||||
$available += $project['budgetAvailable'];
|
||||
}
|
||||
|
||||
$outstandings = $this->Invoices_model-> getTotalsOutstandingPerProject();
|
||||
|
||||
$this->json( [
|
||||
'totalOwp' => $totalOwp,
|
||||
'currentFinancialYear' => $currentFinancialYear,
|
||||
'owpNextyear' => $totalOwp - $currentFinancialYear,
|
||||
'revenuesNextyear' => $totalOwp / 0.4,
|
||||
'totalRevenues' => $totalRevenues
|
||||
'totalOwp' => round( $totalOwp, 0 ),
|
||||
'currentFinancialYear' => round( $currentFinancialYear ),
|
||||
'owpNextyear' => round( $totalOwp - $currentFinancialYear ),
|
||||
'revenuesNextyear' => round( $totalOwp / 0.4 ),
|
||||
'totalRevenues' => round( $totalRevenues ),
|
||||
'outstandings' => $outstandings
|
||||
] );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user