mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Reinstated sum of tag.
This commit is contained in:
parent
a9a542d68f
commit
fff35aa820
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -38,6 +38,11 @@
|
||||
{% if tag.date %}
|
||||
<p>{{ 'date'|_ }}: {{ tag.date.formatLocalized(monthAndDayFormat) }}</p>
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
{{ 'sum'|_ }}: {{ sum|formatAmount }}<br />
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user