feat(dispatch): 수퍼 관리자 전용 기간별 발송 수량 엑셀 다운로드

- GET /dispatch/period-export?date_from=&date_to= (서버 측 is_super_admin 검사, 최대 366일)
- 시트 「날짜별」(날짜/아이템코드/상품이름/수량) + 「아이템별 요약」(아이템×날짜 피벗, 합계)
- seller_sku _N 배수 반영, 콤보는 발송된 그대로(분해 안 함), 상품명은 itemcode_db 우선
- 배치 목록 오른쪽에 기간 선택 카드(수퍼 관리자에게만 표시)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 15:53:05 +09:00
parent 883fcd24f6
commit 66b5155b9b
7 changed files with 338 additions and 1 deletions
+2
View File
@@ -53,6 +53,7 @@
| `GET /dispatch/batches/{id}/picking` | SKU별 피킹 요약 |
| `GET /dispatch/batches/{id}/handover` | Kagayaku 전달 리스트(A4 인쇄용) |
| `POST /dispatch/parcels/{id}/toggle` | 작업 상태 1개 토글(AJAX, 즉시 저장) |
| `GET /dispatch/period-export?date_from=&date_to=` | **수퍼 관리자 전용** 기간별 발송 수량 xlsx(배치 목록 오른쪽 카드). 시트 「날짜별」(날짜/아이템코드/상품이름/수량) + 「아이템별 요약」(아이템 × 날짜 피벗, 합계). `_N` 배수 반영, 콤보는 분해 안 함, 최대 366일 |
작업 상태(카드 버튼, 누르면 초록색): 상품준비 완료 → 포장완료 → 라벨부착 완료 →
Kagayaku 전달 완료 → 택배스캔 확인. 모든 변경은 `dispatch_logs` 에 기록된다.
@@ -145,6 +146,7 @@ Product Name, Quantity, Recipient(받는 사람), Phone(전화), Address(주소)
```bash
python -m app.modules.dispatch.tests.test_grouping # 앱 의존성 설치 환경에서
python -m app.modules.dispatch.tests.test_period_export # 기간별 발송 수량 엑셀
```
---