fix(V1): 비급여에서도 급여조제료/약가 표시 (GPPOS 동일)

This commit is contained in:
청춘약국
2026-04-02 16:22:10 +09:00
parent 8ef9fcdd71
commit 34374c5626

View File

@@ -114,12 +114,7 @@ def get_sales_stats(date_from: str, date_to: str) -> dict:
sales_amt = price_t + drug_t4
# 급여/비급여 분리
if gubun == '9':
ins_prep, ins_drug = 0, 0
nonins_prep = max(0, price_n - drug_t4 - price_p) if drug_t4 > 0 else 0
nonins_drug = drug_t4
else:
# 급여/비급여 분리 (비급여에서도 급여조제료/약가 있을 수 있음 - GPPOS 동일)
ins_prep, ins_drug = s_prep, price_t - s_prep
nonins_prep = max(0, price_n - drug_t4 - se_price_p - price_p) if drug_t4 > 0 else 0
nonins_drug = drug_t4