Fixed something.

This commit is contained in:
James Cole 2015-09-25 16:38:36 +02:00
parent 491298e1cb
commit fcc3af6136

View File

@ -148,11 +148,6 @@ class CategoryController extends Controller
while ($start <= $end) {
$spent = $repository->spentOnDaySumCorrected($category, $start);
$earned = $repository->earnedOnDaySumCorrected($category, $start);
if ($spent < 0) {
$earned = $spent * -1;
$spent = 0;
}
$entries->push([clone $start, $spent, $earned]);
$start->addDay();
}