Some code cleanup [skip ci]

This commit is contained in:
James Cole
2015-05-24 11:41:52 +02:00
parent 6c71f68ed8
commit 1c1fe672bd
10 changed files with 8 additions and 8 deletions

View File

@@ -82,11 +82,12 @@ class JournalRepository implements JournalRepositoryInterface
->where('transaction_journals.date', '<=', $journal->date->format('Y-m-d'))
->where('transaction_journals.order', '>=', $journal->order)
->where('transaction_journals.id', '!=', $journal->id)
->get(['transactions.*']);
->get(['transactions.*']);
$sum = 0;
foreach($set as $entry) {
foreach ($set as $entry) {
$sum += $entry->amount;
}
return $sum;
}