fix(719-2): 업데이트 뒤 서고 사본 줄 연결 다시 이음 · 단가산출 블록 안내 글 되돌림 이름
- Shell: [업데이트]가 서고 사본을 다시 굳혀 블록 id 가 바뀌면 화면 캐시 줄 연결을 사본 폴더(lib)로 다시 이음(짝 Bill_Library.fix_keys) — 캐시가 옛 id 를 잡아 단가 빈칸 되던 것 - Bill_Fold: 단가산출 블록 안내 글 「우클릭 [단가산출 값으로]」 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -319,6 +319,13 @@ export function renderB09Estimation(root: HTMLElement): void {
|
||||
payload = next;
|
||||
const draft = projectId && !fromServer ? readState<Row>("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);
|
||||
};
|
||||
|
||||
@@ -228,7 +228,7 @@ function foldCard(
|
||||
body: [
|
||||
table.root,
|
||||
createText(
|
||||
"품 · 수량 · 단가 칸을 두 번 눌러 고침 · 색 칸 = 고친 칸(이 공사만 · 새 단가 판 · [재적용] 뒤에도 남음) · 우클릭 [품셈 값으로] · [저장] 때 서버가 다시 셈",
|
||||
`품 · 수량 · 단가 칸을 두 번 눌러 고침 · 색 칸 = 고친 칸(이 공사만 · 새 단가 판 · [재적용] 뒤에도 남음) · 우클릭 [${backName((block.lines || []).find((l: Row) => l.sk))}으로] · [저장] 때 서버가 다시 셈`,
|
||||
"muted",
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user