{$MOD.LBL_REPORT_SALES_BY_GROUP}

{if !empty($list_years)} {/if} {if !empty($list_months)} {/if} {if !empty($MOD.DOCUMENT_SALES_LIST)} {/if} {if !empty($list_types) } {/if} {if !empty($stock_array)} {/if} {if !empty($list_group_ks_without_filter)} {/if}
Rok:
Miesiąc:
{$MOD.LBL_DOCUMENT_SALES_TYPE}:
Typ:
{$MOD.LBL_STOCK}:
{$MOD.LBL_PRODUCT_GROUP}:
{if isset($smarty.request.submit) } {if !empty($table_array)} {foreach from=$list_group_ks key=groups_key item=group_ks} {/foreach} {foreach from=$table_array key=year_key item=year name=year_name} {assign var=count_month value=0} {* Generate sum all types for years column *} {assign var=sum_type value=0} {foreach from=$year key=month_key item=month name=month_name} {math assign=sum_type equation="x + y" x=$sum_type y=$month|@count} {/foreach} {foreach from=$year key=month_key item=month name=month_name} {assign var=count_type value=0} {foreach from=$month key=type_key item=type name=type_name} {if $count_type == 0} {if $count_month == 0} {/if} {/if} {if in_array($type_key,$types_group_req)} {if !empty($list_types.$type_key) } {else} {/if} {foreach from=$list_group_ks key=groups_key item=groups} {assign var=found value=0} {foreach from=$type.accounts_type key=group_key item=group name=group_name} {if in_array($group_key,$types_prod_req)} {if $groups_key == $group_key} {assign var=found value=1} {/if} {/if} {/foreach} {if $found==0 } {/if} {/foreach} {/if} {assign var=count_type value=$count_type+1} {/foreach} {assign var=count_month value=$count_month+1} {/foreach} {/foreach}
ROK MIESIĄC PROFIL GŁÓWNY ILU ODBIORCÓW W LICZBACH ILE DOKUMENTÓW {if in_array($groups_key,$types_prod_req)} {$group_ks} {/if} Pozostałe
{$year_key}{$months[$month_key]}{$list_types.$type_key}Pozostałe{$type.accounts_count} {$type.documents_count} {$group|number_format:2:".":","}-{$type.accounts_type.total|number_format:2:".":","}
{/if} {/if} {**}