fix(b09): 9-21 제근 「밑수 미확보」 막힘 걷음 — 마스터 목록(F0294)은 원문 사실이라 두고 단가 조립이 사용자 확정 빌린 밑수 공종만 제외(÷1,000 은 ChooseOne) · 갈래 선 내역 줄 금액 섬 · 일위대가 453 금액 변화 0

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BW6Jdsh18WPtYUR6THZJqn
This commit is contained in:
2026-09-14 13:56:51 +09:00
co-authored by Claude Opus 5
parent 6b7c093e7e
commit c4a83dbb09
2 changed files with 29 additions and 1 deletions
@@ -68,3 +68,27 @@ def test_토사면_고르기는_두_표가_섞여_값이_불완전하다고_먼
note = known_gap_note("FP-09-19-01")
assert "절토면" in note and "성토면" in note and "불완전" in note
assert "불완전" in detail_of(cached_build(), "B-FP-09-19-01")["known_gap_note"]
def test_제근은_빌린_밑수가_확정이라_갈래가_서면_내역_금액이_섬() -> None:
"""9-21 원문엔 밑수가 없어 마스터 `basis_missing` 에 F0294 가 남음(원문 사실 그대로) — 그러나
사용자 확정(건설품셈 3-9-2 「1,000㎡당」 · ÷1,000 은 ChooseOne 이 검)이 있어 내역에서
「밑수 미확보」로 막히면 안 됨(2026-09-14 브레인). 교차 참조 사유는 비고에 그대로 남음."""
from B09_Estimation.B09_Estimation_BasisSheet import open_gaps
from B09_Estimation.B09_Estimation_BillOfQuantities import build_bill
from B09_Estimation.B09_Estimation_UnitPrice import detail_of, load_basis_missing
assert "F0294" in load_basis_missing()
build = cached_build()
assert "FP-09-21" not in build.basis_missing
assert not [g for g in open_gaps(build) if g["code"] == "FP-09-21"]
title = "B-FP-09-21#굴착기(무한궤도)0.7·소"
# ㎡당 환산이 걸린 값 — 1,000㎡당 그대로면 5만원대로 섬
assert build.book.title(title) and 50 <= int(detail_of(build, title)["total"]) <= 60
item = {"work_item_code": "FP-09-21", "name": "지장목제거", "spec": "뿌리뽑기", "unit": "㎡",
"quantity": "1000", "in_bill": True, "variant_axis": "stand_volume_class",
"variant_value": "굴착기(무한궤도)0.7·소"} # fmt: skip
result = build_bill({"work_items": [item], "materials": []}, build=build)
assert not result.missing, result.missing
row = next(r for r in result.rows if r.code == "FP-09-21")
assert row.amount_krw and int(row.amount_krw) > 0, row.note