mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-25 10:20:29 -06:00
Fix for issue with null amounts.
This commit is contained in:
parent
8ce156cf93
commit
88f1adf650
@ -575,8 +575,7 @@ trait PeriodOverview
|
||||
$return[$currencyId]['amount'] = bcadd($return[$currencyId]['amount'], $journal['amount'] ?? '0');
|
||||
$return[$currencyId]['count']++;
|
||||
|
||||
|
||||
if (null !== $foreignCurrencyId) {
|
||||
if (null !== $foreignCurrencyId && null !== $journal['foreign_amount']) {
|
||||
if (!isset($return[$foreignCurrencyId])) {
|
||||
$return[$foreignCurrencyId] = [
|
||||
'amount' => '0',
|
||||
|
Loading…
Reference in New Issue
Block a user