fix(B08): 토적표 합계 줄 — 값이 하나도 없는 면 칸(제근)은 0 대신 빈 칸
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UoSr2sqvYtBf1dtQdus88s
This commit is contained in:
@@ -228,7 +228,11 @@ function totalRow(table: EarthworkTable): HTMLTableRowElement {
|
||||
num(t.diverted_m3),
|
||||
num(t.balance_m3),
|
||||
num(last?.cumulative_m3),
|
||||
...FACE_KEYS.flatMap((key) => ["", num(t[`${key}_area_m2`])]),
|
||||
// 값이 하나도 없는 칸(제근 — B07 에 값 없음)은 합계도 비움
|
||||
...FACE_KEYS.flatMap((key) => [
|
||||
"",
|
||||
table.rows.some((row) => row.faces?.[key]?.area_m2 != null) ? num(t[`${key}_area_m2`]) : "",
|
||||
]),
|
||||
];
|
||||
const tr = document.createElement("tr");
|
||||
tr.className = "b08-earthwork__total";
|
||||
|
||||
Reference in New Issue
Block a user