fix(B09): 중기경비계산서에 갈래 표시 — 같은 기종이 두 장으로 보이던 자리
조합 사용이면 본체 잡재료가 16% 로 줄어 재료비가 달라져 층이 따로 섬(굴착기 0.7 재료비 26,130 → 24,845). 갈래를 안 적어 똑같은 장이 두 번 나온 것처럼 읽혔음. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -272,6 +272,7 @@ export interface MachineExpenseDto {
|
||||
labor_krw: string | null;
|
||||
expense_krw: string | null;
|
||||
total_krw: string | null;
|
||||
variant: string;
|
||||
attachment: boolean;
|
||||
attachment_note: string;
|
||||
gaps: string[];
|
||||
@@ -293,7 +294,9 @@ function machineExpenseSheet(sheet: MachineExpenseDto["sheets"][number]): HTMLEl
|
||||
box.className = "b09-panel__group";
|
||||
const title = document.createElement("p");
|
||||
title.className = "b09-panel__legend";
|
||||
title.textContent = `${sheet.machine_code} ${sheet.name} ${sheet.spec}`.trim();
|
||||
title.textContent =
|
||||
`${sheet.machine_code} ${sheet.name} ${sheet.spec}`.trim() +
|
||||
(sheet.variant ? ` — ${sheet.variant}` : "");
|
||||
box.append(title);
|
||||
|
||||
const coefficient = (value: number | null) => (value === null ? "—" : String(value));
|
||||
@@ -334,6 +337,14 @@ function machineExpenseSheet(sheet: MachineExpenseDto["sheets"][number]): HTMLEl
|
||||
[0, 1],
|
||||
),
|
||||
);
|
||||
if (sheet.variant) {
|
||||
box.append(
|
||||
note(
|
||||
"같은 기종이라도 조합 사용이면 잡재료가 16% 로 줄어 재료비가 달라집니다 —" +
|
||||
" 그래서 층이 따로 섭니다(건설품셈 제8장 [주]⑤).",
|
||||
),
|
||||
);
|
||||
}
|
||||
if (sheet.attachment_note) box.append(note(sheet.attachment_note));
|
||||
for (const gap of sheet.gaps) box.append(note(`⚠ ${gap}`));
|
||||
return box;
|
||||
|
||||
Reference in New Issue
Block a user