feat(B09): 공구손료·잡재료 칸 — 기본은 빔, 넣으면 주재료비의 %로 붙음

사용자 확정 5차 작은 것 1 「지금은 안 넣되 숫자 넣으면 되게 열어 둘 것」.
근거는 산림품셈 1-2-6 — 주재료비(할증수량 제외)의 2~5%까지, 산정 근거 명시.

- 기초자료 탭 「산출 조건」에 칸 하나 + [적용]. 비면 줄 자체가 안 섬(지금 상태 그대로).
- 밑수는 **자재 줄만** — 노무·경비, 하위 일위대가 재료비는 안 듦(층마다 거듭 세지 않음).
- 상한 5% 초과는 거절(400) — 조용히 깎아 넣지 않음.
- ⚠ 지금은 일위대가에 주재료비가 선 공종이 0개라 붙을 밑수가 없음 — 그 사실을 칸 밑에 띄움.
- 곁다리: 비율 줄(제잡비·공구손료)이 저장했다 읽으면 사라지던 것을 고침.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-09 20:30:10 +09:00
co-authored by Claude Opus 5
parent 404ec16e65
commit 83c842e37a
8 changed files with 445 additions and 5 deletions
+6 -2
View File
@@ -161,8 +161,12 @@ def resource_summary(
continue
amount = Decimal(str(quantity))
for detail in book.details.get(code, []):
if detail.percent_of_labor is not None or detail.percent_of_parent is not None:
continue # 비율 줄은 자원이 아니다 — 경비로만 붙는다
if (
detail.percent_of_labor is not None
or detail.percent_of_parent is not None
or detail.percent_of_material is not None
):
continue # 비율 줄은 자원이 아니다 — 목록표에 설 자재·노임이 없다
ref = detail.ref_code
if ref == code:
continue