feat(inout): 합계 줄 원·kg 단위(무게 정수 반올림), 발주서 품목 표 PP 사용량·은 함유량 전체 사용량

- 발주 메일 표·발주서 화면 품목 표 합계: 금액 뒤 원, 무게 뒤 kg(소수 첫째 자리 반올림)
- 발주서 품목 표 머리글 PP 사용량·은(Ag) 함유량, 발주 수량 전체 사용량 kg(개당 값은 작은 글씨)
- 줄 사용량 계산을 store.line_usage 한 곳으로(메일·화면 공용)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 16:01:27 +09:00
parent f0cead5f06
commit af71d4513a
6 changed files with 41 additions and 20 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ def _detail(request: Request, user: dict[str, Any], st: Any, order: dict[str, An
# 입고 담당(발주 담당 아님)은 품목을 이름·발주 수량(+ 이번 입고 칸)만 — 2026-10-16 사용자 요청
"items_limited": perms["can_receive"] and not perms["can_order"],
"show_prices": perms["can_order"], "totals": store.order_totals(order["lines"]),
"fmt_num": store.fmt_num, "line_amount": store.line_amount, "silver_g": store.silver_g,
"fmt_num": store.fmt_num, "line_amount": store.line_amount, "silver_g": store.silver_g, "line_usage": store.line_usage,
"max_photos": store.MAX_PHOTOS,
"receipt_form": receipt_form or {"receipt_date": today_kst().isoformat(), "memo": "", "qty": {}},
"can_receive_now": order["status"] in (store.ST_OPEN, store.ST_PARTIAL, store.ST_DONE, store.ST_OVER),