From 6126f5ee207accc5531b2ce5935186572c7d67a8 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sun, 1 Nov 2026 16:33:17 +0900 Subject: [PATCH] =?UTF-8?q?fix(719-2):=20=EC=97=85=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8=20=EB=92=A4=20=EC=84=9C=EA=B3=A0=20=EC=82=AC=EB=B3=B8?= =?UTF-8?q?=20=EC=A4=84=20=EC=97=B0=EA=B2=B0=20=EB=8B=A4=EC=8B=9C=20?= =?UTF-8?q?=EC=9D=B4=EC=9D=8C=20=C2=B7=20=EB=8B=A8=EA=B0=80=EC=82=B0?= =?UTF-8?q?=EC=B6=9C=20=EB=B8=94=EB=A1=9D=20=EC=95=88=EB=82=B4=20=EA=B8=80?= =?UTF-8?q?=20=EB=90=98=EB=8F=8C=EB=A6=BC=20=EC=9D=B4=EB=A6=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Shell: [업데이트]가 서고 사본을 다시 굳혀 블록 id 가 바뀌면 화면 캐시 줄 연결을 사본 폴더(lib)로 다시 이음(짝 Bill_Library.fix_keys) — 캐시가 옛 id 를 잡아 단가 빈칸 되던 것 - Bill_Fold: 단가산출 블록 안내 글 「우클릭 [단가산출 값으로]」 Co-Authored-By: Claude Opus 5.5 --- B09_Estimation/B09_Estimation_UI_Shell.ts | 7 +++++++ B09_Estimation/B09_Estimation_UI_Tabs_Bill_Fold.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/B09_Estimation/B09_Estimation_UI_Shell.ts b/B09_Estimation/B09_Estimation_UI_Shell.ts index 6786947ae..62d8dcfb6 100644 --- a/B09_Estimation/B09_Estimation_UI_Shell.ts +++ b/B09_Estimation/B09_Estimation_UI_Shell.ts @@ -319,6 +319,13 @@ export function renderB09Estimation(root: HTMLElement): void { payload = next; const draft = projectId && !fromServer ? readState("b09-estimation", projectId) : null; user = draft ?? next.user ?? {}; + // 719-2 [업데이트]가 서고 사본을 다시 굳히면 블록 id 가 바뀜 → 사본 폴더(lib)로 다시 이음(짝 `Bill_Library.fix_keys`) + const libs: Row = next.inputs?.daega?.libs || {}; + const stale = ((user.bill?.rows || []) as Row[]).filter( + (r) => r?.ref?.tab === "dg" && libs[r.ref.lib] && r.ref.key !== libs[r.ref.lib], + ); + for (const r of stale) r.ref.key = libs[r.ref.lib]; + if (stale.length && draft && projectId) writeState("b09-estimation", user, projectId); recompute(); show(current); }; diff --git a/B09_Estimation/B09_Estimation_UI_Tabs_Bill_Fold.ts b/B09_Estimation/B09_Estimation_UI_Tabs_Bill_Fold.ts index 15dfbce47..f253eab01 100644 --- a/B09_Estimation/B09_Estimation_UI_Tabs_Bill_Fold.ts +++ b/B09_Estimation/B09_Estimation_UI_Tabs_Bill_Fold.ts @@ -228,7 +228,7 @@ function foldCard( body: [ table.root, createText( - "품 · 수량 · 단가 칸을 두 번 눌러 고침 · 색 칸 = 고친 칸(이 공사만 · 새 단가 판 · [재적용] 뒤에도 남음) · 우클릭 [품셈 값으로] · [저장] 때 서버가 다시 셈", + `품 · 수량 · 단가 칸을 두 번 눌러 고침 · 색 칸 = 고친 칸(이 공사만 · 새 단가 판 · [재적용] 뒤에도 남음) · 우클릭 [${backName((block.lines || []).find((l: Row) => l.sk))}으로] · [저장] 때 서버가 다시 셈`, "muted", ), ],