diff --git a/queries/v2_pmplus20.py b/queries/v2_pmplus20.py index 06c2706..cb54953 100644 --- a/queries/v2_pmplus20.py +++ b/queries/v2_pmplus20.py @@ -91,11 +91,7 @@ def get_sales_stats(date_from: str, date_to: str) -> dict: WHEN m.PRES_TIME_GUBUN = '1' THEN '3' ELSE '1' END AS Holiday, - -- 비급여(MPRE_TYPE='9')는 TOT_PRICE가 아닌 EXE_PRICE가 매출금액 - CASE - WHEN m.MPRE_TYPE = '9' THEN m.EXE_PRICE - ELSE m.TOT_PRICE - END AS PRICE_T, + m.TOT_PRICE AS PRICE_T, (ISNULL(m.NON_DRUG_PRICE, 0) + ISNULL(m.EXP_EXE_PRICE, 0)) AS Drug_T4, m.INS_PREP_PRICE AS S_Prep, m.INS_PRICE AS PRICE_C,