mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 09:52:20 +00:00
Fix #677
This commit is contained in:
@@ -120,7 +120,7 @@ class CategoryController extends Controller
|
|||||||
foreach ($categories as $category) {
|
foreach ($categories as $category) {
|
||||||
$spent = $repository->spentInPeriod(new Collection([$category]), $accounts, $start, $end);
|
$spent = $repository->spentInPeriod(new Collection([$category]), $accounts, $start, $end);
|
||||||
if (bccomp($spent, '0') !== 0) {
|
if (bccomp($spent, '0') !== 0) {
|
||||||
$report[$category->id] = ['name' => $category->name, 'spent' => $spent];
|
$report[$category->id] = ['name' => $category->name, 'spent' => $spent,'id' => $category->id];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user