commit13
This commit is contained in:
@@ -18,6 +18,8 @@ class StoreRequisitionRequest extends FormRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'operation_key' => 'nullable|uuid',
|
||||
'process_version' => 'nullable|integer|min:1',
|
||||
'cost_center_id' => ['required', 'integer', Rule::exists('cost_centers', 'id')->where('tenant_id', $this->user()?->tenant_id)->where('department_id', $this->user()?->department_id)],
|
||||
'priority' => ['required', Rule::in(['normal', 'high', 'urgent'])],
|
||||
'needed_by' => ['required', 'date_format:Y-m-d', 'after_or_equal:today'],
|
||||
|
||||
Reference in New Issue
Block a user