fix(705-2 붙여넣기 · 다시 잇기): 화면 검증에서 나온 흠 — 첫 줄 머리 짐작 · 열 짝 한 칸 밀림 · 저절로 고름 · 칸 폭 · B09 최신 캐시

- 첫 줄이 수량 없음이어도 금액 없으면(레미콘 별도계산) 줄 — 머리는 금액 있을 때만
- 기억한 열 짝을 다른 꼴(엑셀꼴 호표 칸 · STmate 꼴)에 붙이면 서버가 한 칸 밀어 맞춤
- 다시 잇기 저절로 고름 = 후보 하나 · 붙인 단가 있음만(별도계상 0 원 · 후보 여럿은 사람이 고름) · 빈 칸 글 없앰 · 고름 칸 앞으로 · 칸 폭 1100 안
- B09 알림에서 연 다시 잇기가 붙이기 전 캐시를 읽던 흠 — 붙인 뒤 캐시를 들고 감

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 16:42:28 +09:00
co-authored by Claude Opus 5.5
parent f9ffd5fc77
commit 86f40dedbd
4 changed files with 69 additions and 21 deletions
+28 -1
View File
@@ -334,7 +334,9 @@ def test_구조물_조합으로_규격_묶음_울진_돌기슭막이(client):
if h["번"] in (17, 24, 25)
}
for no, c in ((17, "1.5"), (24, "2.0"), (25, "2.5")):
assert abs(_total(doc, c) - excel[no]) <= excel[no] * 1e-4 # 열마다 = 그 호표 엑셀 합계(끝수 차)
assert (
abs(_total(doc, c) - excel[no]) <= excel[no] * 1e-4
) # 열마다 = 그 호표 엑셀 합계(끝수 차)
one = client.post("/api/m02/layers/personal/hopyo-item", json={**body, "묶음": []}).json()
single, _ = _item_doc(one["열"])
assert not single.get("규격") and one["이름"].endswith("H=1.5 L3=45cm")
@@ -357,3 +359,28 @@ def test_규격_열_이름():
assert item.columns(["H=1.5 L3=45cm", "H=2.0 L3=45cm"]) == ("H", ["1.5", "2.0"])
assert item.columns(["일반형", "ㄷ형"]) == ("규격", ["일반형", "ㄷ형"])
assert item.columns(["D800", "D1000"]) == ("D", ["800", "1000"])
def test_줄만_첫_줄_수량_없음_별도계산은_줄():
rows = _block(_rows("거창"), 2)[
1:
] # 「제2호표」 머리 줄 빼고 — 첫 줄 레미콘(별도계산 · 수량 없음)
got = hp.read_text(
_text(rows),
{"품명": 1, "규격": 2, "수량": 3, "단위": 4, "금액": 6, "노": 7, "재": 9, "경": 11},
)
(one,) = got["호표"]
assert one["번"] == 0 and one["이름"] == "붙여넣기" and one["줄"][0]["이름"] == "레미콘"
assert len(one["줄"]) == 5
def test_기억한_열_짝_한_칸_밀림_맞춤():
stm = {"품명": 0, "규격": 1, "수량": 2, "단위": 3, "금액": 5, "노": 6, "재": 8, "경": 10}
rows = _block(_rows("거창"), 2)[1:] # 엑셀꼴(앞 호표 칸) 줄만 — STmate 꼴로 기억한 짝
got = hp.read_text(_text(rows), stm)
assert got["열"]["품명"] == 1 and [x["이름"] for x in got["호표"][0]["줄"]][:2] == [
"레미콘",
"콘크리트공",
]
same = hp.read_text(_text(_block(_rows("대흥"), 17)), stm)
assert same["열"] == stm