diveren nav mail
This commit is contained in:
@@ -59,7 +59,7 @@ class DashboardController extends MY_Controller {
|
||||
'costsToPay' => $this->reservations(),
|
||||
'invoiced' => $this->getInvoiced(),
|
||||
'totalChance' => $this->getChanceRevenues(),
|
||||
'totalPayment' => $this->getTotalpayment()
|
||||
'totalPayment' => Payment::getPaymentInYear( date( 'Y' ))
|
||||
] );
|
||||
}
|
||||
|
||||
@@ -140,15 +140,4 @@ class DashboardController extends MY_Controller {
|
||||
return $totalChance;
|
||||
}
|
||||
|
||||
private function getTotalPayment()
|
||||
{
|
||||
$totalPayment = 0;
|
||||
foreach($this->invoiceOverviews as $invoiceOverview)
|
||||
{
|
||||
$totalPayment += str_replace( '.', '', $invoiceOverview['projectPayment']);
|
||||
}
|
||||
|
||||
return $totalPayment;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user