{% 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 %}{% endfor %}
상태건수
{{ row.status }}{{ row.orders }}

고객별 매출 상위 5

{% for row in top_customers %}{% endfor %}
고객매출
{{ row.customer }}{{ row.revenue|intcomma }}원

재고 부족 상품

{% for p in low_stock %} {% empty %}{% endfor %}
상품분류재고
{{ p.name }}{{ p.category }}{{ p.stock }}
재고가 부족한 상품이 없습니다

최근 적재 이력

{% for run in runs %}{% endfor %}
시각원본상품주문
{{ run.created_at|date:"Y-m-d H:i" }}{{ run.source }}{{ run.product_count }}{{ run.order_count }}
{% endblock %}