- QualityDocument CRUD + 수주 연결 + 개소별 데이터 저장 - PerformanceReport 실적신고 확인/메모 API - Inspection 검사 설정 + product_code 전파 수정 - 수주선택 API에 client_name 필드 추가 - 절곡 검사 프로파일 분리 (S1/S2/S3) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
745 B
PHP
31 lines
745 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Quality;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class PerformanceReportMemoRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'ids' => ['required', 'array', 'min:1'],
|
|
'ids.*' => ['required', 'integer', 'exists:performance_reports,id'],
|
|
'memo' => ['required', 'string', 'max:1000'],
|
|
];
|
|
}
|
|
|
|
public function messages(): array
|
|
{
|
|
return [
|
|
'ids.required' => __('validation.required', ['attribute' => '실적신고 ID']),
|
|
'memo.required' => __('validation.required', ['attribute' => '메모']),
|
|
];
|
|
}
|
|
}
|