mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 07:08:19 +00:00
Fixed all problems related to strict types.
This commit is contained in:
@@ -37,7 +37,7 @@ class ComponentRepository
|
||||
->whereIn('accounts.id', $ids)
|
||||
->after($start)
|
||||
->first([DB::raw('SUM(`transactions`.`amount`) as `journalAmount`')]);
|
||||
$amount = $entry->journalAmount;
|
||||
$amount = $entry->journalAmount ?? '0';
|
||||
|
||||
return $amount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user