mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-09-03 20:52:58 -05:00
This commit is contained in:
@@ -298,8 +298,8 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface,
|
||||
if (null === $row->piggyBank) {
|
||||
continue;
|
||||
}
|
||||
// get currency preference.
|
||||
$currencyPreference = AccountMeta::query()->where('account_id', $row->piggyBank->account_id)->where('name', 'currency_id')->first();
|
||||
// get currency preference of the connected account(s).
|
||||
$currencyPreference = AccountMeta::query()->where('account_id', $row->piggyBank->accounts->first()->id)->where('name', 'currency_id')->first();
|
||||
if (null !== $currencyPreference) {
|
||||
$currency = Amount::getTransactionCurrencyById((int) $currencyPreference->data);
|
||||
}
|
||||
|
||||
@@ -511,7 +511,7 @@
|
||||
<table class="table table-hover">
|
||||
@foreach($events[$journal['transaction_journal_id']] as $event)
|
||||
<tr>
|
||||
<td class="thirty">{{ $event['amount'] }}</td>
|
||||
<td class="thirty">{!! $event['amount'] !!}</td>
|
||||
<td>
|
||||
<a href="{{ route('piggy-banks.show', [$event['piggy_id']]) }}">{{ $event['piggy'] }}</a>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user