mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-20 18:21:21 +00:00
Order budgets by name.
This commit is contained in:
@@ -65,6 +65,7 @@ class ReportController extends Controller
|
|||||||
$data = $budget->toArray();
|
$data = $budget->toArray();
|
||||||
$array[$id] = $data;
|
$array[$id] = $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
$account->budgetInformation = $array;
|
$account->budgetInformation = $array;
|
||||||
$account->balancedAmount = $balancedAmount;
|
$account->balancedAmount = $balancedAmount;
|
||||||
|
|
||||||
@@ -77,7 +78,7 @@ class ReportController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Start getBudgetsForMonth DONE
|
* Start getBudgetsForMonth DONE
|
||||||
*/
|
*/
|
||||||
$set = Auth::user()->budgets()
|
$set = Auth::user()->budgets()->orderBy('budgets.name', 'ASC')
|
||||||
->leftJoin(
|
->leftJoin(
|
||||||
'budget_limits', function (JoinClause $join) use ($date) {
|
'budget_limits', function (JoinClause $join) use ($date) {
|
||||||
$join->on('budget_limits.budget_id', '=', 'budgets.id')->where('budget_limits.startdate', '=', $date->format('Y-m-d'));
|
$join->on('budget_limits.budget_id', '=', 'budgets.id')->where('budget_limits.startdate', '=', $date->format('Y-m-d'));
|
||||||
|
|||||||
Reference in New Issue
Block a user