| 排名 | {% if cols.pid %}商品ID | {% endif %}商品名稱 | {% if cols.brand %}品牌 | {% endif %} {% if cols.vendor %}廠商名稱 | {% endif %} {% if cols.cat %}分類 | {% endif %} {% if cols.cost or cols.profit %}毛利率 | {% endif %} {% if cols.qty %}平均單價 | {% endif %} {% if cols.qty %}銷售數量 | {% endif %} {% if cols.qty %}建議補貨 (x{{ current_factor }}) | {% endif %}銷售金額 | 累積營收佔比 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ loop.index }} | {% if cols.pid %}{{ item[cols.pid] }} | {% endif %}
{{ item[cols.name] }}
|
{% if cols.brand %}
{{ item[cols.brand] }} | {% endif %} {% if cols.vendor %}{{ item[cols.vendor] }} | {% endif %} {% if cols.cat %}{{ item[cols.cat] }} | {% endif %} {% if cols.cost or cols.profit %}{% set margin = item['calculated_margin_rate'] %} {{ "{:.1f}%".format(margin) }} | {% endif %} {% if cols.qty %}${{ "{:,.0f}".format(item['avg_unit_price']) }} | {% endif %} {% if cols.qty %}{{ "{:,.0f}".format(item[cols.qty]) }} | {% endif %} {% if cols.qty %}{% if item['suggested_restock'] > 0 %} {{ "{:,.0f}".format(item['suggested_restock']) }} {% else %} 建議清倉 {% endif %} | {% endif %}${{ "{:,.0f}".format(item[cols.amount]) }} | {{ "{:.2f}%".format(item['cumulative_pct']) }} |