fix(B08): 구조물이 0개면 동바리 안내를 안 띄움

「동바리 대상 없음」은 옹벽·집수정을 세어 보고 하는 말인데, 셀 구조물이 하나도
없어도 뜨고 있었음. 화면 조건에 구조물 수를 함께 봄 — 서버 값·금액은 안 바뀜.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-09 21:08:00 +09:00
co-authored by Claude Opus 5
parent 5b79e4eebc
commit 92ba0780cd
+3 -1
View File
@@ -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";