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