- Podstawowe wyszukiwanie

{* Search by date_from *}
{* Search by date_to *}
{* Search by date_to *}
Data od |  | Data do |  | Wybierz plik |

{if $rows|@count>0}

Kontrahent | Sprzedana ilość | Ilość w markecie | Wartość sprzedaży | Wartość odsprzedaży
--- | --- | --- | --- | ---
{* id="functions-core" class="tablesorter-infoOnly" *}
{foreach from=$rows key="key" item="item"}
[+] {$item.name} | {$item.sell_quantity|number_format:0:".":"" } | {$item.purchase_quantity|number_format:0:".":"" } | {$item.total_sell|number_format:2:",":"." } | {$item.total_purchase|number_format:2:",":"." }
{if $item.products|@count>0}

{foreach from=$item.products key="key2" item="prod"}
Indeks | Nazwa produktu | Sprzedana ilość | Ilość w markecie | Cena sprzedaży | Cena odsprzedaży | Wartość sprzedaży | Wartość odsprzedaży
--- | --- | --- | --- | --- | --- | --- | ---
{$prod.code} | {$prod.name} | {$prod.sell_quantity|number_format:0:".":"" } | {$prod.buy_quantity|number_format:0:".":"" } | {$prod.purchase_price|number_format:2:",":"." } | {$prod.sell_price|number_format:2:",":"." } | {$prod.total_sell|number_format:2:",":"." } | {$prod.total_purchase|number_format:2:",":"." }
{/foreach}

{/if}
{/foreach}
Razem: | {$total.sell_quantity|number_format:0:".":"" } | {$total.purchase_quantity|number_format:0:".":"" } | {$total.total_sell|number_format:2:",":"." } | {$total.total_purchase|number_format:2:",":"." }

{/if}