mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-31 19:27:51 -06:00
Fix tag report thing. [skip ci]
This commit is contained in:
parent
2606d77c62
commit
3a236456cd
@ -238,7 +238,9 @@ class ReportHelper implements ReportHelperInterface
|
|||||||
->leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
|
->leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
|
||||||
->where('transaction_journals.date', '>=', $start->format('Y-m-d'))
|
->where('transaction_journals.date', '>=', $start->format('Y-m-d'))
|
||||||
->where('transaction_journals.date', '<=', $end->format('Y-m-d'))
|
->where('transaction_journals.date', '<=', $end->format('Y-m-d'))
|
||||||
->whereIn('transactions.account_id', $ids)->get(['tags.id', 'tags.tag', 'transactions.amount']);
|
->whereIn('transactions.account_id', $ids)->get(
|
||||||
|
['tags.id', 'tags.tag', 'transaction_journals.id as journal_id', 'transactions.amount']
|
||||||
|
);
|
||||||
$collection = [];
|
$collection = [];
|
||||||
if ($set->count() === 0) {
|
if ($set->count() === 0) {
|
||||||
return $collection;
|
return $collection;
|
||||||
|
Loading…
Reference in New Issue
Block a user