This commit is contained in:
James Cole 2017-06-26 18:29:45 +02:00
parent 02a36316be
commit 506509b1b2
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -120,7 +120,7 @@ class CategoryController extends Controller
foreach ($categories as $category) {
$spent = $repository->spentInPeriod(new Collection([$category]), $accounts, $start, $end);
if (bccomp($spent, '0') !== 0) {
$report[$category->id] = ['name' => $category->name, 'spent' => $spent];
$report[$category->id] = ['name' => $category->name, 'spent' => $spent,'id' => $category->id];
}
}