fix(719-2): 산근 결과단위 배 = 712-2 단위 한 벌(master_unit.per) — 받은 712-2 가 Store_Combo._PER 를 걷음
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -208,12 +208,11 @@ class _Prices:
|
||||
def _unit(row: dict) -> tuple[str, Decimal]:
|
||||
"""결과단위 1 단위 — (단위, 배)(「원/10㎡」 = ㎡ · 10) · 알약 규칙(`combo_pills`) 그대로 ·
|
||||
줄 = 사본 단가 묶음 것(M01 다시 안 읽음 · 719-2)."""
|
||||
per = combo_store._PER.findall(str(row.get("결과단위") or ""))
|
||||
per = combo_store.mu.per(row.get("결과단위")) # 712-2 단위 한 벌
|
||||
if not per:
|
||||
return "", Decimal(1)
|
||||
times = per[0][0].replace(",", "")
|
||||
unit = " · ".join(dict.fromkeys(u for _, u in per))
|
||||
return unit, Decimal(times) if len(per) == 1 and times else Decimal(1)
|
||||
return unit, Decimal(per[0][0]) if len(per) == 1 else Decimal(1)
|
||||
|
||||
|
||||
def unit_of(whole: Any, code: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user