Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix https://github.com/firefly-iii/firefly-iii/issues/12435
James Cole0c64f51e59ec
diff --git a/app/Repositories/TransactionGroup/TransactionGroupRepository.php b/app/Repositories/TransactionGroup/TransactionGroupRepository.phpindex 369bb3cbce..dbe06d3233 100644--- a/app/Repositories/TransactionGroup/TransactionGroupRepository.php+++ b/app/Repositories/TransactionGroup/TransactionGroupRepository.php@@ -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);}diff --git a/resources/views/transactions/show.blade.php b/resources/views/transactions/show.blade.phpindex 3e4dd55a82..720b78692e 100644--- a/resources/views/transactions/show.blade.php+++ b/resources/views/transactions/show.blade.php@@ -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>