mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
Reinstated sum of tag.
This commit is contained in:
@@ -220,9 +220,12 @@ class TagController extends Controller
|
||||
{
|
||||
$subTitle = $tag->tag;
|
||||
$subTitleIcon = 'fa-tag';
|
||||
/** @var Collection $journals */
|
||||
$journals = $tag->transactionjournals()->expanded()->get(TransactionJournal::QUERYFIELDS);
|
||||
|
||||
return view('tags.show', compact('tag', 'subTitle', 'subTitleIcon', 'journals'));
|
||||
$sum = $journals->sum('amount');
|
||||
|
||||
return view('tags.show', compact('tag', 'subTitle', 'subTitleIcon', 'journals','sum'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user