From f3b78beeccdf7949d3ee1a99e48f3935fbacd9ae Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 7 Aug 2025 20:33:24 +0200 Subject: [PATCH] Fix another null --- app/Support/JsonApi/Enrichments/RecurringEnrichment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php b/app/Support/JsonApi/Enrichments/RecurringEnrichment.php index beba7dde9b..989e9ea924 100644 --- a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php +++ b/app/Support/JsonApi/Enrichments/RecurringEnrichment.php @@ -309,7 +309,7 @@ class RecurringEnrichment implements EnrichmentInterface if (true === $this->convertToPrimary && $currencyId !== (int)$this->primaryCurrency->id) { $pcAmount = $converter->convert($this->currencies[$currencyId], $this->primaryCurrency, today(), $transaction['amount']); } - if (null !== $transaction['foreign_amount']) { + if (null !== $transaction['foreign_amount'] && null !== $transaction['foreign_currency_id']) { $foreignCurrencyId = $transaction['foreign_currency_id']; if ($foreignCurrencyId !== $this->primaryCurrency->id) { $pcForeignAmount = $converter->convert($this->currencies[$foreignCurrencyId], $this->primaryCurrency, today(), $transaction['foreign_amount']);