{% extends "market/base.html" %}
{% load humanize %}
{% block content %}
{% if not product_count %}
아직 데이터가 없습니다. py manage.py load_market --sample 을 실행하세요.
{% endif %}
상품 수{{ product_count|intcomma }}
주문 수{{ order_count|intcomma }}
매출 (취소 제외){{ revenue|intcomma }}원
재고 부족 (10개 미만){{ low_stock_count }}
분류별 매출
{% for row in categories %}
{{ row.category }}
{{ row.revenue|intcomma }}원
{% endfor %}
주문 상태
| 상태 | 건수 |
{% for row in statuses %}| {{ row.status }} | {{ row.orders }} |
{% endfor %}
고객별 매출 상위 5
| 고객 | 매출 |
{% for row in top_customers %}| {{ row.customer }} | {{ row.revenue|intcomma }}원 |
{% endfor %}
재고 부족 상품
| 상품 | 분류 | 재고 |
{% for p in low_stock %}| {{ p.name }} | {{ p.category }} | {{ p.stock }} |
{% empty %}| 재고가 부족한 상품이 없습니다 |
{% endfor %}
최근 적재 이력
| 시각 | 원본 | 상품 | 주문 |
{% for run in runs %}| {{ run.created_at|date:"Y-m-d H:i" }} | {{ run.source }} | {{ run.product_count }} | {{ run.order_count }} |
{% endfor %}
{% endblock %}