fix(715 · 712-2 이음): M02_Sangeun_Calc.times_of — 옛 Store_Combo._PER 대신 단위 한 벌 master_unit.per(712-2 가 옮김) · 합친 뒤 시험 63 통과

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 16:11:09 +09:00
co-authored by Claude Opus 5.5
parent 9ca48fa581
commit 36a21591e2
+2 -3
View File
@@ -47,9 +47,8 @@ def times_of(row: dict) -> Decimal:
"""결과단위 분모 앞 수(원/10㎡ → 10) — 없으면 1."""
from M01_MasterData import M01_MasterData_Store_Combo as combo_store
per = combo_store._PER.findall(str(row.get("결과단위") or ""))
head = per[0][0].replace(",", "") if len(per) == 1 else ""
return Decimal(head) if head else Decimal(1)
per = combo_store.mu.per(row.get("결과단위")) # 712-2 단위 한 벌
return per[0][0] if len(per) == 1 else Decimal(1)
def fingerprint(row: dict) -> str: