fix: 거래 세부 내역의 단가 컬럼 매핑 수정

- SL_INPUT_PRICE → SL_NM_cost_a로 변경
- SL_INPUT_PRICE는 합계 금액이었음 (잘못된 매핑)
- SL_NM_cost_a가 실제 개당 단가

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
시골약사 2026-01-23 19:05:33 +09:00
parent 10087cac5f
commit aa222eec3a

View File

@ -410,7 +410,7 @@ def admin_transaction_detail(transaction_id):
S.DrugCode,
ISNULL(G.GoodsName, '(약품명 없음)') AS goods_name,
S.SL_NM_item AS quantity,
S.SL_INPUT_PRICE AS price,
S.SL_NM_cost_a AS price,
S.SL_TOTAL_PRICE AS total
FROM SALE_SUB S
LEFT JOIN PM_DRUG.dbo.CD_GOODS G ON S.DrugCode = G.DrugCode