Fix some chart things. Again.

This commit is contained in:
James Cole
2015-09-25 16:18:50 +02:00
parent cb985f5897
commit 0a8f4017bd
3 changed files with 27 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ class CategoryController extends Controller
while ($start <= $end) {
$spent = $repository->spentOnDaySumCorrected($category, $start);
$earned = 0;
$earned = $repository->earnedOnDaySumCorrected($category, $start);
if ($spent < 0) {
$earned = $spent * -1;
$spent = 0;