This commit is contained in:
James Cole
2015-05-16 15:52:09 +02:00
parent b812881cdb
commit 66c2951594
7 changed files with 2 additions and 481 deletions

View File

@@ -115,8 +115,8 @@ class ReportHelper implements ReportHelperInterface
$line->setBudget($budget);
// get budget amount for current period:
$rep = $budget->limitrepetitions()->where('budget_limits.startdate',$start->format('Y-m-d 00:00:00'))->first();
if($rep) {
$rep = $repository->getCurrentRepetition($budget, $start);
if ($rep) {
$line->setBudgetAmount($rep->amount);
}