- POST /v1/documents/bulk-create-fqc: 수주 개소별 제품검사 문서 일괄생성 - GET /v1/documents/fqc-status: 수주별 FQC 진행현황 조회 - BulkCreateFqcRequest FormRequest 추가 - error.php에 no_order_items, already_created 메시지 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
869 B
PHP
32 lines
869 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Document;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class BulkCreateFqcRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'template_id' => 'required|integer|exists:document_templates,id',
|
|
'order_id' => 'required|integer|exists:orders,id',
|
|
];
|
|
}
|
|
|
|
public function messages(): array
|
|
{
|
|
return [
|
|
'template_id.required' => __('validation.required', ['attribute' => '템플릿']),
|
|
'template_id.exists' => __('validation.exists', ['attribute' => '템플릿']),
|
|
'order_id.required' => __('validation.required', ['attribute' => '수주']),
|
|
'order_id.exists' => __('validation.exists', ['attribute' => '수주']),
|
|
];
|
|
}
|
|
}
|