Merge remote-tracking branch 'origin/sub_laptop_2' into main_laptop_1

충돌 = Labor_Text 글 키 둘 다 남김(50-4 상세 글 · 51-3 사전조합 글) · docs 수정요구 = 메인 판
This commit is contained in:
2026-10-05 19:45:06 +09:00
7 changed files with 205 additions and 127 deletions
+10 -1
View File
@@ -353,7 +353,16 @@ class Expand:
"로직": line.get("로직"),
"기준": {k: Decimal(str(v)) / times for k, v in base.items()} if base else None,
"까닭": why,
"줄": got.get("줄"), # 원 로직 표(줄 누름 상세 · 50-3 ④) — 원 로직 결과단위 그대로
# 원 로직 줄(줄 누름 하위 행 · 51-2) — 1 단위로 나눔(하위 합 = 기준)
"줄": [
{
**x,
"수량": Decimal(str(x["수량"])) / times,
"금액": Decimal(str(x["금액"])) / times,
"비목": {k: Decimal(str(v)) / times for k, v in (x.get("비목") or {}).items()},
}
for x in got.get("줄") or []
],
}
def _combo(self, doc: dict, trail: tuple[str, ...]) -> dict[str, Any]: