- 계정과목 확장 및 더존 Smart A 표준 시딩 (전 테넌트) - 전표 연동 시스템 구현 (JournalSyncService, SyncsExpenseAccounts) - 세금계산서 매입/매출 필수값 조건 분리 + null 방어 - 카드거래 대시보드 리다이렉트 + 악성채권 집계 수정 - 바로빌 연동 API 엔드포인트 추가 - 복리후생 날짜 필터 + 바로빌 조인 컬럼 수정 - codebridge DB 커넥션 설정 추가
37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Requests\V1\AccountSubject;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UpdateAccountSubjectRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'name' => ['sometimes', 'string', 'max:100'],
|
|
'category' => ['nullable', 'string', 'in:asset,liability,capital,revenue,expense'],
|
|
'sub_category' => ['nullable', 'string', 'max:50'],
|
|
'parent_code' => ['nullable', 'string', 'max:10'],
|
|
'depth' => ['nullable', 'integer', 'in:1,2,3'],
|
|
'department_type' => ['nullable', 'string', 'in:common,manufacturing,admin'],
|
|
'description' => ['nullable', 'string', 'max:500'],
|
|
'sort_order' => ['nullable', 'integer'],
|
|
];
|
|
}
|
|
|
|
public function messages(): array
|
|
{
|
|
return [
|
|
'category.in' => '유효한 분류를 선택하세요.',
|
|
'depth.in' => '계층은 1(대), 2(중), 3(소) 중 하나여야 합니다.',
|
|
'department_type.in' => '부문은 common, manufacturing, admin 중 하나여야 합니다.',
|
|
];
|
|
}
|
|
}
|