feat(796-2d): 단가산출 상세 탭 소계 · 합계가 합밖 · 제외 단계 줄을 안 더함 — 엔진 줄 표지 합밖 · 상세 줄 합 밖 배지 · 박스 소계 · 합계 표지 줄 뺌(금액 셈 그대로)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-07 13:38:54 +09:00
co-authored by Claude Sonnet 5.5
parent 137cfb701d
commit cf411c5f0a
5 changed files with 111 additions and 3 deletions
+2 -1
View File
@@ -127,7 +127,8 @@ def engine(master, ref: str, got: dict, depth: int = 0) -> dict:
total[k] += 0 if n in skip else v or 0
if n >= len(items) and money is not None:
more = {"단가": money}
lines.append({**line, "비목": cut, "금액": money, **more})
out = {"합밖": True} if n in skip else {} # 합계에 안 드는 줄 표지(796-2d · 보이기만)
lines.append({**line, "비목": cut, "금액": money, **more, **out})
if not new:
costs = {k: mf.cut(logic, down(v, 0), "계") for k, v in total.items()}
# 중간 = 덧줄이 본 값(버린 줄 합 · 덧줄 값 · `줄`) — 시험 계산 중간 칸