pharmacy-pos-qr-system/backend/check_order.py
thug0bin dc2a992c12 fix: 규격 파싱 - T/C/P/D 수량 단위 우선, mg/ml 용량 단위 무시
- parse_spec 함수 개선: product_name에서도 수량 단위 추출
- 예: '스틸녹스정10mg(PTP) 14T' → spec='10mg'이어도 14T에서 14 추출
2026-03-07 17:31:18 +09:00

7 lines
351 B
Python

import requests
res = requests.get('http://localhost:7001/api/geoyoung/order-detail/DA2603-0255533', timeout=120)
data = res.json()
print('items:', len(data.get('items', [])))
for item in data.get('items', []):
print(f" {item.get('product_name')[:20]}: qty={item.get('quantity')}, order_qty={item.get('order_qty')}, amount={item.get('amount')}")