diff --git a/.env.example b/.env.example index dad6d3b..bfceef3 100644 --- a/.env.example +++ b/.env.example @@ -20,3 +20,20 @@ CUSTOMER_ORDER_LIST_URL=/orderlist/ # 설정하면 PostgreSQL 사용, 미설정 시 DATA_DIR/expense.json 사용. # DB/역할 생성: scripts/sql/expense_db_init.sql 참고. # EXPENSE_DB_URL=postgresql://expense_app:replace-me@postgres-db:5432/expense_db + +# ─── 쿠팡 밀크런 모듈 (cupang_db) ─── +# 설정해야 모듈이 동작한다(미설정 시 "설정 필요" 안내, JSON 폴백 없음). +# DB/역할/스키마/센터 seed 생성: scripts/sql/cupang_db_init.sql 참고. +# CUPANG_DB_URL=postgresql://cupang_app:replace-me@postgres-db:5432/cupang_db + +# ─── 상품 검색 (itemcode_db 읽기 전용) ─── +# cupang 출고 라인의 제품코드/제품명을 itemcode_db 에서 검색한다(읽기만). +# 미설정 시 검색 비활성 → 폼에서 수동 입력. itemcode_db 의 실제 테이블/컬럼은 +# 운영 서버에서 `\dt` / `\d
| 제품코드 | 제품명 | 박스명 | 입수량 | 상태 | 메모 | |
|---|---|---|---|---|---|---|
| {{ r.product_code }} | +{{ r.product_name_snapshot or '—' }} | +{{ r.box_name }} | +{{ r.units_per_box }} | +{% if r.active %}활성{% else %}비활성{% endif %} | +{{ r.memo or '—' }} | ++ {% if r.active %} + + {% else %}—{% endif %} + | +
| 센터명 | 정렬 | 상태 | 사용중 | 동작 |
|---|---|---|---|---|
| + + | +{{ c.sort_order }} | ++ {% if c.active %}활성 + {% else %}비활성{% endif %} + | +{% if c.in_use %}사용중{% else %}—{% endif %} | +
+
+ {% if c.active %}
+
+ {% else %}
+
+ {% endif %}
+
+
+ |
+
※ 출고 데이터에서 사용 중인 센터는 삭제 시 hard delete 되지 않고 비활성화됩니다.
+| # | 제품코드 | 제품명 | 수량 | +입수량 | 필요박스 | 잔량 | 수동보정 | 메모 |
|---|---|---|---|---|---|---|---|---|
| {{ ln.line_no }} | +{{ ln.product_code }} | +{{ ln.product_name_snapshot }} | +{{ ln.quantity }} | +{{ ln.units_per_box if ln.units_per_box else '미설정' }} | +{{ ln.calculated_boxes if ln.calculated_boxes is not none else '—' }} | +{{ ln.remainder_units if ln.remainder_units is not none else '—' }} | +{{ ln.manual_box_text or '—' }} | +{{ ln.memo or '—' }} | +
선택한 날짜의 출고 묶음이 없습니다. + 신규 등록
+ {% endif %} +