Corrected some charts [skip ci]

This commit is contained in:
James Cole
2015-05-20 06:49:51 +02:00
parent fbdf66998d
commit 9217c2f003
3 changed files with 9 additions and 4 deletions

View File

@@ -138,7 +138,7 @@ class BudgetController extends Controller
function (Budget $budget) use ($repository) {
$date = Session::get('start', Carbon::now()->startOfMonth());
$end = Session::get('end', Carbon::now()->endOfMonth());
$budget->spent = $repository->spentInPeriod($budget, $date, $end);
$budget->spent = $repository->spentInPeriodCorrected($budget, $date, $end);
$budget->currentRep = $repository->getCurrentRepetition($budget, $date);
}
);