mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
First calculations for multi-year budget chart.
This commit is contained in:
@@ -60,6 +60,12 @@ Route::bind(
|
||||
->whereIn('budgets.id', $ids)
|
||||
->where('budgets.user_id', Auth::user()->id)
|
||||
->get(['budgets.*']);
|
||||
|
||||
// add empty budget if applicable.
|
||||
if(in_array('0', $ids)) {
|
||||
$object->push(new Budget);
|
||||
}
|
||||
|
||||
if ($object->count() > 0) {
|
||||
return $object;
|
||||
}
|
||||
|
Reference in New Issue
Block a user