fix(859-8): 기계 창 낡은 알림 「원본에 새 값 있음 — 프로젝트 사본은 [단가 갱신] 으로 반영」 걷음 — 프로젝트 [단가 갱신] 없어짐 · 서버 기계 창 답 새값 칸 · 글 키 Win_Newer 지움
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,7 +37,6 @@ interface CopyRowData {
|
||||
export interface CopyAnswer {
|
||||
사본: CopyRowData | null;
|
||||
지금: CopyRowData | null;
|
||||
새값: boolean;
|
||||
}
|
||||
|
||||
export interface MachineCtx {
|
||||
@@ -233,10 +232,7 @@ export function openMachineWindow(o: MachineWindowOptions): void {
|
||||
// 지금 줄 = 이 단가산출 사본 값(있으면)
|
||||
const copy = c.kind === "now" && ctx.copyRow ? await ctx.copyRow(c.no).catch(() => null) : null;
|
||||
const row = copy?.사본 ?? null;
|
||||
if (row) {
|
||||
lines.push(createText(mt("Win_Copy"), "muted"));
|
||||
if (copy?.새값) lines.push(createText(mt("Win_Newer"), "warning"));
|
||||
}
|
||||
if (row) lines.push(createText(mt("Win_Copy"), "muted"));
|
||||
if (k === "mine") {
|
||||
const m = c.mine ?? mines.find((r) => r.원문번호 === c.no);
|
||||
if (m) lines.push(createText(`${mt("Server_Hourly")} ${hourlyText(m.시간당)}`));
|
||||
|
||||
@@ -197,7 +197,7 @@ def saving(body: dict, inner: Callable[[dict], Any]) -> Any:
|
||||
|
||||
|
||||
def copy_row(doc: dict, copy: dict | None, no: str) -> dict[str, Any]:
|
||||
"""기계 창 열 때 — {사본: 이 SK 사본에 박힌 줄 | None, 지금: 지금 줄 | None, 새값}(원문번호 · 키로 찾음)."""
|
||||
"""기계 창 열 때 — {사본: 이 SK 사본에 박힌 줄 | None, 지금: 지금 줄 | None}(원문번호 · 키로 찾음)."""
|
||||
from M02_MasterTemplete import M02_Sangeun_Copy as skc
|
||||
|
||||
no = no.strip().strip("'")
|
||||
@@ -209,5 +209,4 @@ def copy_row(doc: dict, copy: dict | None, no: str) -> dict[str, Any]:
|
||||
whole = skc.whole_()
|
||||
live = (whole.numbers.get("EQ") or {}).get(no) or (whole.index.get("EQ") or {}).get(no)
|
||||
now = prices.to_json(live) if live is not None else None
|
||||
new = have is not None and now is not None and skc._fp(have) != skc._fp(now)
|
||||
return {"사본": have, "지금": now, "새값": new}
|
||||
return {"사본": have, "지금": now}
|
||||
|
||||
@@ -60,7 +60,6 @@ const TEXT = {
|
||||
Win_M01: "M01 기계",
|
||||
Win_Copy: "이 단가산출에 복사된 값",
|
||||
Win_Live: "원본 지금 값",
|
||||
Win_Newer: "원본에 새 값 있음 — 프로젝트 사본은 [단가 갱신] 으로 반영",
|
||||
Win_Swap: "이 기계로 바꾸기",
|
||||
Win_Hint: "왼쪽에서 기계를 고르면 값이 보임",
|
||||
Win_View: "조회",
|
||||
|
||||
@@ -182,9 +182,7 @@ def test_edit_mine_other_sk_new_value(world):
|
||||
now = _at(me, path.read, first)
|
||||
assert now["셈"]["계"] == was
|
||||
seen = _at(me, path.machine, first, f"'{no}'")
|
||||
assert (
|
||||
seen["사본"]["값"]["가격"] == 1000 and seen["지금"]["값"]["가격"] == 5000 and seen["새값"]
|
||||
)
|
||||
assert seen["사본"]["값"]["가격"] == 1000 and seen["지금"]["값"]["가격"] == 5000
|
||||
|
||||
|
||||
def test_company_and_other_refused(world):
|
||||
|
||||
Reference in New Issue
Block a user