Fixed some other displays of money

This commit is contained in:
James Cole
2015-05-20 18:09:44 +02:00
parent 568ab26db1
commit 411f77fd29
4 changed files with 27 additions and 9 deletions

View File

@@ -81,7 +81,10 @@ class CategoryController extends Controller
$set = $repository->getCategoriesAndExpensesCorrected($start, $end);
foreach ($set as $entry) {
$chart->addRow($entry['name'], floatval($entry['sum']));
$sum = floatval($entry['sum']);
if($sum != 0) {
$chart->addRow($entry['name'], $sum);
}
}
$chart->generate();