Merge remote-tracking branch 'origin/sub_laptop_4' into sub_laptop_3
This commit is contained in:
@@ -81,6 +81,8 @@ export interface CalcLine {
|
||||
단가: number;
|
||||
금액: number;
|
||||
비목: Record<string, number>;
|
||||
/** 값 없는 요소를 다른 요소로 셈 — 「준용: <직종>」 */
|
||||
출처?: string;
|
||||
}
|
||||
export type CalcAnswer =
|
||||
| {
|
||||
|
||||
@@ -104,7 +104,7 @@ function answerView(answer: CalcAnswer, draft: boolean): HTMLElement[] {
|
||||
const rows = answer.lines.map((line) =>
|
||||
el("tr", {
|
||||
children: [
|
||||
el("td", { text: line.이름 }),
|
||||
el("td", { text: line.출처 ? `${line.이름} (${line.출처})` : line.이름 }),
|
||||
el("td", { text: `${formatNumber(line.수량)} ${line.단위}` }),
|
||||
el("td", { className: "m01-logic__money", text: formatNumber(line.금액) }),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user