Merge remote-tracking branch 'origin/sub_laptop_6' into sub_laptop_8

This commit is contained in:
2026-10-31 13:07:09 +09:00
13 changed files with 668 additions and 25 deletions
@@ -219,4 +219,12 @@ async def save_item_as(
async def calc_item(
project_id: str, folder: str, session: dict[str, Any] = Depends(verify_session)
) -> dict[str, Any]:
return await _run(copies.calc, await _root(session, project_id), folder)
root = await _root(session, project_id)
out = await _run(copies.calc, root, folder)
from B09_Estimation.B09_Estimation_Labor_Source import cover_count # B09 → M02 순환 피함
try: # 702-4 B09 원가에서 고친 일위대가 칸 수(카드 금액 = 사본 셈 · 고치기 전)
out["B09고침"] = await asyncio.to_thread(cover_count, root, folder)
except Exception: # noqa: BLE001 — 표시만 · 카드 셈은 그대로
out["B09고침"] = 0
return out