feat: [HR/기타] 캘린더/배차/설비/재고 + DB 마이그레이션
- 캘린더 CRUD API, 배차차량 관리 API (CRUD + options) - 배차정보 다중 행 시스템 (shipment_vehicle_dispatches) - 설비 다중점검주기 + 부 담당자 스키마 추가 - TodayIssue 날짜 기반 조회, Stock/Client 날짜 필터 - i18n 메시지 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\VehicleDispatch;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class VehicleDispatchUpdateRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'freight_cost_type' => 'nullable|in:prepaid,collect',
|
||||
'logistics_company' => 'nullable|string|max:100',
|
||||
'arrival_datetime' => 'nullable|date',
|
||||
'tonnage' => 'nullable|string|max:20',
|
||||
'vehicle_no' => 'nullable|string|max:20',
|
||||
'driver_contact' => 'nullable|string|max:50',
|
||||
'remarks' => 'nullable|string',
|
||||
'supply_amount' => 'nullable|numeric|min:0',
|
||||
'vat' => 'nullable|numeric|min:0',
|
||||
'total_amount' => 'nullable|numeric|min:0',
|
||||
'status' => 'nullable|in:draft,completed',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user