fix(asset): allow registering a monitor of an already-registered model

Registration was blocked whenever same-model candidates existed, so a
second monitor of the same model (e.g. dual monitors) could not be added.
Now only an existing asset with the same serial blocks a new one; the
UI tells serial and model candidates apart and hides 'register' only
for serial matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 15:14:22 +09:00
parent 133df472d1
commit e9be17faab
5 changed files with 29 additions and 4 deletions
+3
View File
@@ -18,6 +18,9 @@
시리얼이 없거나 중복·제조사/모델 불일치인 경우 자동 확정하지 않고 후보를 직접 연결한다.
- 미등록 모니터는 보고서의 이름/제조사/모델/시리얼과 컴퓨터의 위치/부서를 채운 등록 창을 연다.
생성과 컴퓨터 연결은 한 트랜잭션으로 저장한다. 동시 등록은 컴퓨터 행 잠금과 시리얼 잠금으로 보호한다.
- 새 등록을 막는 것은 **같은 시리얼의 모니터 자산이 이미 있을 때뿐**이다(같은 실물 — 기존 자산에 연결).
같은 모델·이름의 자산은 참고 후보로만 보여 주고(`candidate_by = "model"`), 시리얼이 다르거나 없으면 새 자산으로 등록된다
(듀얼 모니터처럼 같은 모델 여러 대 — 2026-10-07 수정, 예전엔 같은 모델 후보만 있어도 막혔다).
- 등록·연결은 최신 보고서에서만 가능하다. 이전 보고서도 모니터와 자산 개요를 조회할 수 있다.
기존에 업로드한 보고서도 재업로드 없이 지원한다.