Some cleaning up.

This commit is contained in:
James Cole
2014-09-19 23:05:57 +02:00
parent c1ba8dc6a7
commit c39c59fff5
6 changed files with 204 additions and 79 deletions

View File

@@ -378,14 +378,6 @@ class EloquentBudgetRepository implements BudgetRepositoryInterface
$q->orderBy('limit_repetitions.startdate', 'ASC');
}]
)->orderBy('name', 'ASC')->get();
foreach ($set as $budget) {
foreach ($budget->limits as $limit) {
foreach ($limit->limitrepetitions as $rep) {
$rep->left = $rep->left();
}
}
}
return $set;
}