refactor(751-2): calc_sheet 직접 꼴 공용 꼴로 · test_719_4 공용 꼴 파일 더함

- calc_sheet.ts won = toLocaleString 직접 꼴 → formatMoney(0 자리) · formatLineMoney(1 자리) · 보이는 값 같음
- test_719_4 낡은 시험: node 로 붙이는 TS 목록에 common_util_money.ts 더함(751-1 뒤 formatNumber 미정의 ReferenceError) · 재는 것은 그대로

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 23:34:37 +09:00
co-authored by Claude Sonnet 5.5
parent a9f4b0c88d
commit 94b6869b99
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ import { el } from "@ui/ui_template_elements";
import { createInputField, createSelectField } from "@ui/ui_template_input";
import { currentLanguageIndex } from "@ui/ui_template_locale";
import { createText } from "@ui/ui_template_text";
import { formatLineMoney, formatMoney } from "../common_util/common_util_money";
import "./calc_sheet.css";
export interface SheetLine {
@@ -148,7 +149,7 @@ const t = (k: keyof typeof TEXT): string => TEXT[k][currentLanguageIndex as 0 |
const bundleName = (b: string): string => (b in TEXT ? t(b as keyof typeof TEXT) : b);
const won = (v: number | null, digits = 0): string =>
v === null ? "-" : v.toLocaleString("ko-KR", { maximumFractionDigits: digits });
v === null ? "-" : digits ? formatLineMoney(v) : formatMoney(v);
const out = (v: number | null, key = false, digits = 0): HTMLElement =>
el("span", { className: `ui-calc-row__out${key ? " is-key" : ""}`, text: won(v, digits) });
@@ -36,6 +36,7 @@ def made():
def _ts(sg, machines):
files = [
"common_util/common_util_money.ts",
"B09_Estimation/B09_Estimation_Calc_Base.ts",
"A00_Common/calc_sheet.ts",
"B09_Estimation/B09_Estimation_UI_Tabs_Sangeun_Sheet.ts",