feat(859-4): 일위대가 두 판 셈 — 문서 본뜬.단가기준 엑셀 = 고정 줄 줄 단가 그대로 · 우리 = 이은 비목 단가 책 값

- Labor_Fixed.line 판 받음 · basis_of(본뜬.단가기준 엑셀 | 우리 · 없음 = 지금 셈)
- Labor_Doc.calc · Labor_Expand = 판을 고정 줄 · 하위 SC · 가져온 식 SK 참조에 넘김(부르는 쪽 › SC 자기 판)
- 판 없는 문서 = 그대로(아직 판을 다는 길 없음 · 다음 묶음)
- 새 지킴 test_859_4_hopyo_basis(엑셀 판 = 줄 단가 · 우리 판 = 단가 책 · 펼침 판 차례)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 21:38:56 +09:00
co-authored by Claude Opus 5.5
parent 47d2fe7192
commit d9e6ec9ca1
4 changed files with 91 additions and 8 deletions
+3 -1
View File
@@ -479,6 +479,8 @@ def calc(
사본 `수식.json` 문서 셈 · 855-F B9-2). 없으면 지금 M01 · 층."""
whole, have = lc.live(doc) if whole is None else whole, _area_of(doc.get("열")) if given is None else given # fmt: skip
expand = refs.Expand(whole, read or refs.read_ref, have) # 사전조합 안 줄 수량 = 알약 값(723-1)
# 판(859-4) — 고정 줄 · 하위 SC · 가져온 식 SK 가 따름
expand.basis = basis = fixed.basis_of(doc)
if pills is None:
pills = combo_store.combo_pills({"담은로직": doc.get("담은로직") or []})["물량"]
by_logic = {code: pill for pill in pills for code in pill.get("로직") or []}
@@ -488,7 +490,7 @@ def calc(
lines.append(ref_line(one["참조"], patch.ref(one, expand)))
continue
if fixed.is_fixed(one):
lines.append(fixed.line(whole, one[fixed.FIXED]))
lines.append(fixed.line(whole, one[fixed.FIXED], basis))
continue
code = one["로직"]
pill = by_logic.get(code) or {}