From 92ba0780cdfc11000f299dd2bb07a958c2d8083a Mon Sep 17 00:00:00 2001 From: umsangdon Date: Wed, 9 Sep 2026 21:08:00 +0900 Subject: [PATCH] =?UTF-8?q?fix(B08):=20=EA=B5=AC=EC=A1=B0=EB=AC=BC?= =?UTF-8?q?=EC=9D=B4=200=EA=B0=9C=EB=A9=B4=20=EB=8F=99=EB=B0=94=EB=A6=AC?= =?UTF-8?q?=20=EC=95=88=EB=82=B4=EB=A5=BC=20=EC=95=88=20=EB=9D=84=EC=9B=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 「동바리 대상 없음」은 옹벽·집수정을 세어 보고 하는 말인데, 셀 구조물이 하나도 없어도 뜨고 있었음. 화면 조건에 구조물 수를 함께 봄 — 서버 값·금액은 안 바뀜. Co-Authored-By: Claude Opus 5 (1M context) --- B08_Quantity/B08_Quantity_UI_MaterialGrid.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/B08_Quantity/B08_Quantity_UI_MaterialGrid.ts b/B08_Quantity/B08_Quantity_UI_MaterialGrid.ts index a288291d..adcd36fe 100644 --- a/B08_Quantity/B08_Quantity_UI_MaterialGrid.ts +++ b/B08_Quantity/B08_Quantity_UI_MaterialGrid.ts @@ -349,7 +349,9 @@ export function renderUnitQuantityGrid(response: MaterialResponse): HTMLElement if (reuse) wrap.append(reuse); const reuseMissing = warning("사용횟수 미확보", info.formwork_reuse_missing ?? []); if (reuseMissing) wrap.append(reuseMissing); - if (info.shoring && !info.shoring.applicable) { + // ⚠ **구조물이 하나도 없으면 안 띄운다** — 「동바리 대상 없음」은 옹벽·집수정을 세어 보고 + // 하는 말인데, 셀 구조물 자체가 없으면 그 말이 사실을 넘어선다(2026-09-09). + if (info.shoring && !info.shoring.applicable && unit.structure_count > 0) { // 「없음」을 0 으로 적지 않는다 — 대상이 없는 것과 값이 0 인 것은 다르다. const line = document.createElement("p"); line.className = "b08-grid__caption";