From 00ba2a46d2bbbf19bd71c3cf0e739a14693d4ef8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 25 Oct 2025 09:20:21 +0200 Subject: [PATCH] Fix #11063 --- app/Support/Http/Controllers/PeriodOverview.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Support/Http/Controllers/PeriodOverview.php b/app/Support/Http/Controllers/PeriodOverview.php index caa114007b..6fec7eadda 100644 --- a/app/Support/Http/Controllers/PeriodOverview.php +++ b/app/Support/Http/Controllers/PeriodOverview.php @@ -634,10 +634,10 @@ trait PeriodOverview $currencySymbol = $journal['currency_symbol']; $currencyDecimalPlaces = $journal['currency_decimal_places']; $foreignCurrencyId = $journal['foreign_currency_id']; - $amount = $journal['amount'] ?? '0'; + $amount = (string) ($journal['amount'] ?? '0'); if ($this->convertToPrimary && $currencyId !== $this->primaryCurrency->id && $foreignCurrencyId !== $this->primaryCurrency->id) { - $amount = $journal['pc_amount'] ?? '0'; + $amount = (string) ($journal['pc_amount'] ?? '0'); $currencyId = $this->primaryCurrency->id; $currencyCode = $this->primaryCurrency->code; $currencyName = $this->primaryCurrency->name; @@ -650,7 +650,7 @@ trait PeriodOverview $currencyName = $journal['foreign_currency_name']; $currencySymbol = $journal['foreign_currency_symbol']; $currencyDecimalPlaces = $journal['foreign_currency_decimal_places']; - $amount = $journal['foreign_amount'] ?? '0'; + $amount = (string) ($journal['foreign_amount'] ?? '0'); } $return[$currencyId] ??= [ 'amount' => '0',