From e21d5203440f908d7e5433bee24b051dbdae7155 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Mon, 16 Nov 2026 11:13:35 +0900 Subject: [PATCH] =?UTF-8?q?fix(847-2):=20=EC=9D=BC=EB=8B=B9=20=EC=9E=91?= =?UTF-8?q?=EC=97=85=EB=9F=89=20=EB=8B=A8=EC=9C=84=20=E2=80=94=20=EC=8B=9C?= =?UTF-8?q?=EA=B3=B5=EB=9F=89=20=EB=8B=A8=EC=9C=84=20=EB=81=9D=20=E3=80=8C?= =?UTF-8?q?/=EC=9D=BC=E3=80=8D=20=EB=97=80=20=EB=92=A4=20/hr(=ED=8C=8C?= =?UTF-8?q?=EC=9D=B4=EC=8D=AC=20=C2=B7=20TS=20=EC=A7=9D=20=ED=95=9C=20?= =?UTF-8?q?=EC=A4=84=EC=94=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 시공량 변수 단위가 ㎥/일 이 되어도 일당 율 단위 = ㎥/hr(「㎥/일/hr」 막음 · 기계 작업량 식 단위 대조 그대로) - master_doc_work._daily · common_util_formula_doc_work.ts dailySite 같은 한 줄 · 거울 시험 test_846_1 그대로 통과 Co-Authored-By: Claude Opus 5.5 --- common_util/common_util_formula_doc_work.ts | 2 +- resources/master_data/scripts/master_doc_work.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common_util/common_util_formula_doc_work.ts b/common_util/common_util_formula_doc_work.ts index d85c33992..485244624 100644 --- a/common_util/common_util_formula_doc_work.ts +++ b/common_util/common_util_formula_doc_work.ts @@ -185,7 +185,7 @@ function daily(doc: FormulaDoc, node: Node, rs: Set): Site | null { for (const i of crew) per = ["bin", "*", per, fs[i][1]]; const rate: Node = ["bin", "/", d, per]; const ns = names(d); - const u = ns.length === 1 ? unitOf(doc, ns[0]) : ""; + const u = ns.length === 1 ? unitOf(doc, ns[0]).replace(/\/일$/, "") : ""; // ㎥/일 → ㎥(847-2) return { 꼴: DAILY, 노드: rate, 단위: u ? `${u}/hr` : perHour(doc), 율: "", 뺌: new Set([eight[0], den[0], ...crew]) }; // prettier-ignore } diff --git a/resources/master_data/scripts/master_doc_work.py b/resources/master_data/scripts/master_doc_work.py index ebf906b44..0818f9c23 100644 --- a/resources/master_data/scripts/master_doc_work.py +++ b/resources/master_data/scripts/master_doc_work.py @@ -139,7 +139,7 @@ def _daily(doc: dict, node, rates: set): per = ("bin", "*", per, fs[i][1]) rate = ("bin", "/", d, per) names = md.names(d) - u = unit_of(doc, names[0]) if len(names) == 1 else "" + u = re.sub(r"/일$", "", unit_of(doc, names[0])) if len(names) == 1 else "" # ㎥/일 → ㎥(847-2) unit = f"{u}/hr" if u else _per_hour(doc) # 시공량 단위 없음 = 문서 결과 단위 return {"꼴": DAILY, "노드": rate, "단위": unit, "뺌": {eight[0], den[0], *crew}}