feat: BOM 테스트 및 데이터 마이그레이션

- BOM child_item_id를 새 items 테이블 ID로 마이그레이션
- Item.loadBomChildren() 수정: setRelation()으로 모델에 설정
- ItemService.validateBom() 추가: 순환 참조 방지
- error.php에 self_reference_bom 메시지 추가
- ID 7 자기참조 BOM 데이터 수정 완료

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-13 23:53:16 +09:00
parent 9cc7cd1428
commit d2bdecf063
4 changed files with 167 additions and 4 deletions

View File

@@ -124,6 +124,7 @@
'batch_in_use' => '사용 중인 품목이 포함되어 있어 삭제할 수 없습니다. (품목: :codes, :count건)',
'invalid_item_type' => '유효하지 않은 품목 유형입니다.',
'duplicate_code' => '중복된 품목 코드입니다.',
'self_reference_bom' => 'BOM에 자기 자신을 포함할 수 없습니다.',
],
// 잠금 관련