fix: 조제 화면 제품 선택 드롭다운 '기타' 표시 문제 수정

- /api/herbs/by-ingredient 엔드포인트에서 specification이 '기타'로 표시되는 문제 수정
- specification 값이 없을 때 '일반'으로 표시
- '세화' 제조사 추가 인식
- 실제 specification 값을 그대로 표시하도록 개선
- 칼럼 헤더 '원산지 선택' → '제품/로트 선택'으로 변경

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
시골약사 2026-02-15 18:34:39 +00:00
parent a4861dc1b8
commit 8d03e85648
2 changed files with 4 additions and 2 deletions

4
app.py
View File

@ -269,8 +269,10 @@ def get_herbs_by_ingredient(ingredient_code):
h.specification,
CASE
WHEN h.specification LIKE '%신흥%' THEN '신흥'
WHEN h.specification LIKE '%세화%' THEN '세화'
WHEN h.specification LIKE '%한동%' THEN '한동'
ELSE COALESCE(h.specification, '기타')
WHEN h.specification IS NULL OR h.specification = '' THEN '일반'
ELSE h.specification
END as company_name,
COALESCE(SUM(il.quantity_onhand), 0) as stock_quantity,
COUNT(DISTINCT il.lot_id) as lot_count,

View File

@ -383,7 +383,7 @@
<th>약재명</th>
<th>1첩당 용량(g)</th>
<th>총 용량(g)</th>
<th>원산지 선택</th>
<th>제품/로트 선택</th>
<th>재고</th>
<th>작업</th>
</tr>