fix(b08): 고르개 후보 0 이면 다음 길을 적음 — 「낱말·갈래를 바꿔 찾거나 수동 단가(미확정)」 · 조용히 「없음」으로 막히지 않게(936be972 PVC파이프는 단가표에 품셈·자원 모두 0)
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016VBGFXB9AbJBwXP19z75Qq
This commit is contained in:
@@ -233,7 +233,16 @@ export function unitPriceEditor(options: EditorOptions): HTMLElement {
|
||||
if (!response.ok) throw new Error(payload.message ?? `HTTP ${response.status}`);
|
||||
const items = payload.items ?? [];
|
||||
results.replaceChildren(
|
||||
...(items.length ? items.map(choice) : [el("span", "b08-grid__caption", "없음")]),
|
||||
...(items.length
|
||||
? items.map(choice)
|
||||
: [
|
||||
// 후보 0 — 조용히 막히지 않게 다음 길을 적음(갈래 바꿔 찾기 · 수동 단가는 미확정으로 셈).
|
||||
el(
|
||||
"span",
|
||||
"b08-grid__caption",
|
||||
"단가표에 후보 없음 — 낱말·갈래(품셈/자원)를 바꿔 찾거나, 이 줄에 수동 단가를 넣을 것(미확정으로 셈)",
|
||||
),
|
||||
]),
|
||||
);
|
||||
} catch (error) {
|
||||
results.replaceChildren(
|
||||
|
||||
@@ -105,6 +105,8 @@ def test_찾기는_코드_없는_줄_이름으로_후보만_띄운다() -> None:
|
||||
encoding="utf-8"
|
||||
)
|
||||
assert "query.value = row.name" in ui and "!row.ref_code && !row.work_item_code" in ui
|
||||
# 후보 0 이면 다음 길(갈래 바꾸기 · 수동 단가)을 적음 — 조용히 「없음」으로 막히지 않게(2026-09-14 브레인)
|
||||
assert "수동 단가를 넣을 것" in ui
|
||||
|
||||
|
||||
def test_사용자가_코드를_고르면_금액이_선다() -> None:
|
||||
|
||||
Reference in New Issue
Block a user