diff --git a/app/Repositories/Tag/TagRepository.php b/app/Repositories/Tag/TagRepository.php index 9a5a2be73c..fcfb6505d1 100644 --- a/app/Repositories/Tag/TagRepository.php +++ b/app/Repositories/Tag/TagRepository.php @@ -378,7 +378,7 @@ class TagRepository implements TagRepositoryInterface $sums[$currencyId][$type] = bcadd($sums[$currencyId][$type], $amount); $foreignCurrencyId = $journal['foreign_currency_id']; - if (null !== $foreignCurrencyId) { + if (null !== $foreignCurrencyId && 0 !== $foreignCurrencyId) { $sums[$foreignCurrencyId] = $sums[$foreignCurrencyId] ?? [ 'currency_id' => $foreignCurrencyId, 'currency_name' => $journal['foreign_currency_name'],