|
|
@@ -1,7 +1,7 @@ |
|
|
|
{% trans_default_domain 'lcshop' %} |
|
|
|
|
|
|
|
{% macro product_sales_statistic(productsSalesStatistic, productFamily=false) %} |
|
|
|
{% for weekNumber, weekNumberQuantity in productsSalesStatistic %} |
|
|
|
{% for weekNumber, weekNumberQuantity in productsSalesStatistic|reverse(true) %} |
|
|
|
<span class="text-success"><i class="fa fa-calendar"></i> {{ weekNumber }}</span> |
|
|
|
<span class="text-info"><i class="fa fa-shopping-basket"></i> |
|
|
|
<strong> |
|
|
@@ -22,18 +22,17 @@ |
|
|
|
{% for weekNumber, weekNumberQuantity in productsSalesStatistic['data']['total_sales']['data']|reverse(true) %} |
|
|
|
<span class="text-success"><i class="fa fa-calendar"></i> {{ weekNumber }}</span> |
|
|
|
<span class="text-info"><i class="fa fa-shopping-basket"></i> |
|
|
|
<strong> |
|
|
|
{{ weekNumberQuantity is null ? 0 : weekNumberQuantity }} |
|
|
|
{% if productFamily and (productFamily.behaviorDisplaySale== constant('Lc\\ShopBundle\\Model\\ProductFamily::BEHAVIOR_DISPLAY_SALE_BY_MEASURE')) %} |
|
|
|
{{ productFamily.unit.unitReference }} |
|
|
|
{% endif %} |
|
|
|
</strong> |
|
|
|
</span> |
|
|
|
<strong> |
|
|
|
{{ weekNumberQuantity is null ? 0 : weekNumberQuantity }} |
|
|
|
{% if productFamily and (productFamily.behaviorDisplaySale== constant('Lc\\ShopBundle\\Model\\ProductFamily::BEHAVIOR_DISPLAY_SALE_BY_MEASURE')) %} |
|
|
|
{{ productFamily.unit.unitReference }} |
|
|
|
{% endif %} |
|
|
|
</strong> |
|
|
|
</span> |
|
|
|
<br/> |
|
|
|
{% endfor %} |
|
|
|
</button> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% endmacro product_family_sales_statistic %} |
|
|
|
|
|
|
|
|