refactor(855-F B9-6): B09 산근 · 대가 · 계산서 덧칸 · 서고 운반 입력이 옛 로직 줄 대신 수식 문서를 읽음
- B09_Estimation_Doc_Run: doc · row · row_of 더함 — 수식 문서 → B09 풀이 줄 꼴(이름 · 결과단위 · 출처 · 입력 · 중간 = 변수 열쇠 · 호표 = 수량 있는 금액 줄(종류 = 단가 연결: 단가산출 · 굳은 기계 묶음 → 로직 · 노임 요소 → 인력 · 그 밖 → 재료 · 요소 = 연결 키) · 덧줄 = 수량 없는 금액 줄(1,456 돈 문서 전부 끝) · 단계) · engine 덧줄에 % 밑 이름 - B09_Estimation_Sangeun: unit_of · is_money · line_calls · Solver._solve 가 whole.logic 대신 문서 · 계산서 줄 덧칸 = 새 B09_Estimation_Sheet(문서에서 쓰는입력 · 기준단위 · 환산근거 · master_sheet_line 안 부름) · _input_names = 지금 수식 문서 - B09_Estimation_Labor_Source._poomsem: 문서 줄 꼴 · % 밑 = 문서 셈 밑 이름(옛 덧줄 식 글 정규식 걷음) · 키 모르는 굳은 기계 묶음 줄 = M02 값 고정 줄 - B09_Estimation_Bill_Library._logic(운반 값 입력) = 지금 수식 문서(Item_Prices.doc_specs) - 골든 test_855_b09_golden 다시 뜸 — 산근 값 · 산근 관급 값 · 미리보기 hand:net 값 세 갈래 = 재료 줄 단위 글 kg → ㎏(문서 단위)뿐 - 실제 B09 프로젝트(손 줄 6): 산근 답 = 옛 코드 답과 같음(계산서 덧칸 쓰는입력까지) · 해시 같음 - 검증: 관련 + 핵심 + 855_golden · 855_trace · 795_4 549 통과 · typecheck 0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,7 +40,6 @@ from B08_Quantity.B08_Quantity_Haul_Cycle import FILL, cycle_inputs, cycle_time
|
||||
from B09_Estimation.B09_Estimation_Store import folder as store_folder
|
||||
from B09_Estimation.B09_Estimation_Store import ref_rows
|
||||
from common_util.common_util_json import atomic_write_json
|
||||
from M01_MasterData import M01_MasterData_Store as m01
|
||||
from M02_MasterTemplete import M02_Doc_B09 as doc_b09
|
||||
from M02_MasterTemplete import M02_Labor_Ref as refs
|
||||
from M02_MasterTemplete.M02_Item_Snapshot import (
|
||||
@@ -159,10 +158,12 @@ def refresh_copy(project_root: str | Path, one: tuple) -> None:
|
||||
|
||||
# ── 운반 값 사본(263-2) ────────────────────────────────────────────────
|
||||
def _logic(code: str) -> dict[str, Any]:
|
||||
try:
|
||||
return dict(m01.loaded()[1].logic(code) or {})
|
||||
except Exception: # noqa: BLE001 — 없는 로직 = 입력 없음
|
||||
return {}
|
||||
"""M01 기초 이름 · 입력 꼴 — 지금 수식 문서(855-F B9-6) · 없는 기초 = 입력 없음."""
|
||||
from M02_MasterTemplete import M02_Doc_Copy as dc
|
||||
from M02_MasterTemplete import M02_Item_Prices as item_prices
|
||||
|
||||
doc = dc.folder().get(str(code))
|
||||
return {"이름": doc.get("이름"), "입력": item_prices.doc_specs(doc)} if doc else {}
|
||||
|
||||
|
||||
def _line_at(labor: Any, lid: str) -> dict[str, Any] | None:
|
||||
|
||||
Reference in New Issue
Block a user