feat: [ItemMaster] ItemPage 생성 시 동일 item_type 중복 방지 로직 추가

- ItemPageService::store()에서 동일 tenant_id + item_type + is_active 조합 중복 검증
- ItemPageStoreRequest에 Rule::unique 검증 추가 (tenant_id 범위 한정)
- 에러 메시지 키 추가: error.item_page_duplicate_item_type (ko/en)
This commit is contained in:
김보곤
2026-03-21 15:57:35 +09:00
parent c13d4c2113
commit a071997b42
4 changed files with 31 additions and 1 deletions

View File

@@ -148,6 +148,7 @@
'field_key_system_readonly' => '시스템 필드의 field_key는 변경할 수 없습니다.',
'field_key_system_cannot_delete' => '시스템 필드는 삭제할 수 없습니다.',
'bom_not_found' => 'BOM 항목을 찾을 수 없습니다.',
'item_page_duplicate_item_type' => '이미 동일한 품목 유형의 페이지가 존재합니다.',
'item_type_required' => '품목 유형(item_type)은 필수입니다.',
'item_type_or_group_required' => '품목 유형(item_type) 또는 그룹 ID(group_id)는 필수입니다.',
'invalid_item_type' => '유효하지 않은 품목 유형입니다.',