diff --git a/backend/pmr_api.py b/backend/pmr_api.py index 3dea33e..084ec43 100644 --- a/backend/pmr_api.py +++ b/backend/pmr_api.py @@ -11,6 +11,7 @@ from PIL import Image, ImageDraw, ImageFont import io import base64 import os +from utils.drug_unit import get_drug_unit pmr_bp = Blueprint('pmr', __name__, url_prefix='/pmr') @@ -363,6 +364,7 @@ def get_prescription_detail(prescription_id): 'total_qty': float(row.INV_QUAN) if row.INV_QUAN else 0, 'type': '급여' if row.PS_Type in ['0', '4'] else '비급여' if row.PS_Type == '1' else row.PS_Type, 'sung_code': row.SUNG_CODE or '', + 'unit': get_drug_unit(row.GoodsName or '', row.SUNG_CODE or ''), 'ps_type': row.PS_Type or '0', 'unit_code': unit_code, 'is_substituted': is_substituted, diff --git a/backend/templates/pmr.html b/backend/templates/pmr.html index 7ab118b..abd6ade 100644 --- a/backend/templates/pmr.html +++ b/backend/templates/pmr.html @@ -1555,7 +1555,6 @@