From 8dcc36880e8b7ec24b49a3b381a5365a81449327 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 1 Feb 2025 13:03:19 +0100 Subject: [PATCH] Fix https://github.com/firefly-iii/firefly-iii/issues/9722 --- app/Support/Http/Controllers/PeriodOverview.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Support/Http/Controllers/PeriodOverview.php b/app/Support/Http/Controllers/PeriodOverview.php index baad36e7f9..f74ddc7c40 100644 --- a/app/Support/Http/Controllers/PeriodOverview.php +++ b/app/Support/Http/Controllers/PeriodOverview.php @@ -204,8 +204,7 @@ trait PeriodOverview $currencyDecimalPlaces = $journal['currency_decimal_places']; $foreignCurrencyId = $journal['foreign_currency_id']; $amount = $journal['amount'] ?? '0'; - - + if ($this->convertToNative && $currencyId !== $this->defaultCurrency->id && $foreignCurrencyId !== $this->defaultCurrency->id) { $amount = $journal['native_amount'] ?? '0'; $currencyId = $this->defaultCurrency->id;