mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Committed bad code.
This commit is contained in:
@@ -163,9 +163,7 @@ class TransactionJournalSupport extends Model
|
||||
if ($cache->has()) {
|
||||
return $cache->get();
|
||||
}
|
||||
$transactions = $journal->transactions()
|
||||
->whereNull('transactions.deleted_at')
|
||||
->where('transactions.amount', '>', 0)->orderBy('transactions.account_id')->with('account')->get();
|
||||
$transactions = $journal->transactions()->where('amount', '>', 0)->orderBy('transactions.account_id')->with('account')->get();
|
||||
$list = new Collection;
|
||||
/** @var Transaction $t */
|
||||
foreach ($transactions as $t) {
|
||||
@@ -257,10 +255,7 @@ class TransactionJournalSupport extends Model
|
||||
if ($cache->has()) {
|
||||
return $cache->get();
|
||||
}
|
||||
$transactions = $journal->transactions()
|
||||
->whereNull('transactions.deleted_at')
|
||||
->where('transactions.amount', '<', 0)
|
||||
->orderBy('transactions.account_id')->with('account')->get();
|
||||
$transactions = $journal->transactions()->where('amount', '<', 0)->orderBy('transactions.account_id')->with('account')->get();
|
||||
$list = new Collection;
|
||||
/** @var Transaction $t */
|
||||
foreach ($transactions as $t) {
|
||||
|
Reference in New Issue
Block a user