{{:assign type=$_GET.type|or:'entry' period=$_GET.period|or:'quarter'}} {{:admin_header title="Statistiques" current="module_saisie_poids"}} {{:include file="_nav.html" current="stats"}} {{if $period === 'year'}} {{:assign period="strftime('%Y', $$.date)"}} {{elseif $period === 'quarter'}} {{:assign period="strftime('%Y-Q', $$.date) || CAST((strftime('%m', $$.date) + 2) / 3 AS string)"}} {{else}} {{:assign period="strftime('%Y-%m', $$.date)"}} {{/if}} {{if $type === 'declare'}} {{:assign group="$$.ecologic" group_label="Type opé" where="$$.ecologic IS NOT NULL AND ($$.type = 'exit' OR $$.type = 'entry')" }} {{elseif $type === 'entry'}} {{:assign group="$$.category" group_label="Provenance" where="$$.type = 'entry'"}} {{else}} {{:assign group="$$.category" group_label="Motif" where="$$.type = 'exit'"}} {{/if}} {{#list select="%s AS 'Période'; %s AS '%s'; SUM($$.qty) AS 'Qté'; SUM($$.total_weight) AS 'Poids'"|args:$period:$group:$group_label order=1 desc=true group="%s, %s"|args:$period:$group where=$where count="COUNT(DISTINCT %s)"|args:$group }}
Il n'y a aucun résultat pour ce critère.
{{/list}} {{:admin_footer}}