Implement household, QR sale, team helpers assignment, and helper endpoints

This commit is contained in:
Developer
2026-06-29 16:56:33 +08:00
parent b85fc255cf
commit 7dc074e3c3
31 changed files with 1574 additions and 98 deletions

View File

@@ -23,6 +23,8 @@ class StoreCollectionTeamRequest extends FormRequest
'truck_id' => ['nullable', 'integer', 'exists:trucks,id'],
'helper_ids' => ['nullable', 'array'],
'helper_ids.*' => ['integer', 'exists:users,id'],
'helper_count' => ['nullable', 'integer', 'min:0', 'max:10'],
'helper_assignment_mode' => ['nullable', 'string', Rule::in(['random', 'manual'])],
'status' => ['nullable', Rule::in([CollectionTeam::STATUS_ACTIVE, CollectionTeam::STATUS_INACTIVE])],
'notes' => ['nullable', 'string', 'max:1000'],
'override_conflicts' => ['nullable', 'boolean'],