Expand settings, make accounts not mandatory.

This commit is contained in:
James Cole
2025-12-30 20:51:56 +01:00
parent 61444e9660
commit 523ec7c0a1
2 changed files with 7 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ class UpdateRequest extends FormRequest
'target_date' => 'date|nullable|after:start_date',
'notes' => 'max:65000',
'accounts' => 'required',
'accounts.*' => 'array|required',
'accounts.*' => 'array',
'accounts.*.account_id' => ['required', 'numeric', 'belongsToUser:accounts,id'],
'accounts.*.current_amount' => ['numeric', 'nullable', new IsValidZeroOrMoreAmount(true)],
'object_group_id' => 'numeric|belongsToUser:object_groups,id',