mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
Should fix frontpage.
This commit is contained in:
parent
e73d590ead
commit
7c7740d3ba
@ -338,6 +338,11 @@ class TransactionJournal extends TransactionJournalSupport
|
||||
$join->on('transactions.transaction_journal_id', '=', 'transaction_journals.id')->where('transactions.amount', '>', 0);
|
||||
}
|
||||
);
|
||||
$query->orderBy('transaction_journals.date', 'DESC');
|
||||
$query->orderBy('transaction_journals.order', 'ASC');
|
||||
$query->orderBy('transaction_journals.id', 'DESC');
|
||||
|
||||
|
||||
$query->groupBy('transaction_journals.id');
|
||||
$query->with(['categories', 'budgets', 'attachments', 'bill','transactions']);
|
||||
}
|
||||
|
@ -246,6 +246,9 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
}
|
||||
)->where('source.account_id', $account->id);
|
||||
|
||||
$query->take(10);
|
||||
|
||||
|
||||
$set = $query->get(TransactionJournal::queryFields());
|
||||
|
||||
return $set;
|
||||
|
Loading…
Reference in New Issue
Block a user