From 0c64f51e59ecaca9cd564b744f30f889e53c03c7 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 5 Aug 2026 19:43:08 +0200 Subject: [PATCH] Fix https://github.com/firefly-iii/firefly-iii/issues/12435 --- .../TransactionGroup/TransactionGroupRepository.php | 4 ++-- resources/views/transactions/show.blade.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Repositories/TransactionGroup/TransactionGroupRepository.php b/app/Repositories/TransactionGroup/TransactionGroupRepository.php index 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.php index 3e4dd55a82..720b78692e 100644 --- a/resources/views/transactions/show.blade.php +++ b/resources/views/transactions/show.blade.php @@ -511,7 +511,7 @@ @foreach($events[$journal['transaction_journal_id']] as $event) - +
{{ $event['amount'] }}{!! $event['amount'] !!} {{ $event['piggy'] }}