This commit is contained in:
James Cole 2020-09-23 19:14:50 +02:00
parent cc1a537ecb
commit fc157b2944
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -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'],