diff --git a/src/core/rebar/quantity.ts b/src/core/rebar/quantity.ts index 3bd50aa..380137c 100644 --- a/src/core/rebar/quantity.ts +++ b/src/core/rebar/quantity.ts @@ -113,7 +113,7 @@ export function quantityRows(q: Quantity): (string | number)[][] { for (const g of q.groups) { for (const d of g.diameters) { for (const l of d.lines) { - out.push([`SD${g.grade}`, l.name, l.shape, l.size, l.count, l.length ?? '여러 길이', round(l.totalM), round(l.kgPerM, 3), round(l.kg)]); + out.push([`SD${g.grade}`, l.name, l.shape, l.size, l.count, l.length === null ? '여러 길이' : round(l.length), round(l.totalM), round(l.kgPerM, 3), round(l.kg)]); } out.push(['', `${d.size} 소계`, '', d.size, '', '', round(d.totalM), '', round(d.kg)]); } diff --git a/src/main.ts b/src/main.ts index f39eb9b..dcc99a0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1058,7 +1058,7 @@ function quantityTargets(): Pier[] { /** Length cell of a 재료표 line: the length, or 여러 길이 with the pieces on hover. */ function lengthCell(l: QuantityLine): HTMLTableCellElement { - if (l.length !== null) return el('td', String(l.length)); + if (l.length !== null) return el('td', String(Math.round(l.length * 10) / 10)); const cell = el('td', `여러 길이 (${l.pieces.length}종)`); cell.title = l.pieces.map((p) => `${Math.round(p.length)} × ${p.count}`).join(' · '); return cell;