feat: update material_result handling in CuttingRequest, CuttingCreate, and CuttingEdit components
This commit is contained in:
parent
3ef948c47f
commit
1f39565754
@ -22,10 +22,10 @@ public function rules(): array
|
||||
'materials' => ['required', 'array', 'min:1'],
|
||||
'materials.*.raw_material_price_id' => ['required', 'integer', 'exists:raw_material_prices,id'],
|
||||
'materials.*.material_usage' => ['required', 'integer', 'min:1'],
|
||||
'materials.*.material_result' => ['required', 'integer', 'min:1'],
|
||||
'materials.*.combination_index' => ['nullable', 'integer', 'min:1'],
|
||||
'materials.*.material_result' => ['required', 'integer'],
|
||||
'materials.*.combination_index' => ['nullable', 'integer'],
|
||||
'combinations' => ['nullable', 'array'],
|
||||
'combinations.*.material_result' => ['nullable', 'integer', 'min:1'],
|
||||
'combinations.*.material_result' => ['nullable', 'integer'],
|
||||
'photo_key' => ['nullable', 'string', 'max:500'],
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user