{% extends 'ewoooc_base.html' %} {% block title %}EwoooC 缺貨清單{% endblock %} {% block extra_css %} {% endblock %} {% block ewooo_content %} {% set status_labels = {'pending': '待發送', 'sent': '已發送', 'failed': '失敗'} %}
依現有缺貨匯入資料呈現,可用批次、廠商、商品與發送狀態篩選;所有數字皆來自 vendor_stockout。
| 狀態 | 商品 | 廠商 | 批次 | 庫存 | 缺貨日期 | 缺貨天數 | 30 日業績 | 建立時間 |
|---|---|---|---|---|---|---|---|---|
|
{{ status_labels.get(record_status, record_status) }}
{% if record.is_duplicate %}
重複 {{ record.duplicate_count or 0 }}
{% endif %}
|
{{ record.product_name }}
{{ record.product_code }}
|
{{ record.vendor_name }}
{{ record.vendor_code }}
|
{{ record.batch_id }} | {{ record.current_stock if record.current_stock is not none else '--' }} | {{ record.stockout_date.strftime('%Y-%m-%d') if record.stockout_date else '--' }} | {{ record.stockout_days if record.stockout_days is not none else '--' }} | {% if record.monthly_sales_amount is not none %} ${{ record.monthly_sales_amount | int | number_format }} {% else %} -- {% endif %} | {{ record.created_at.strftime('%Y-%m-%d %H:%M') if record.created_at else '--' }} |