diveren nav mail

This commit is contained in:
2020-02-21 15:51:54 +01:00
parent 96f8d8bb4e
commit 042f9ac25d
4 changed files with 17 additions and 25 deletions
@@ -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;
}
}