Budget limit now has period.

This commit is contained in:
James Cole
2020-11-20 06:24:08 +01:00
parent 3dbc74b040
commit c659d67172
7 changed files with 193 additions and 110 deletions

View File

@@ -102,6 +102,7 @@ class BudgetLimitController extends Controller
public function index(Request $request): JsonResponse
{
$manager = $this->getManager();
$manager->parseIncludes('budget');
$budgetId = (int)($request->get('budget_id') ?? 0);
$budget = $this->repository->findNull($budgetId);
$pageSize = (int)app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;