{*
*}

- {$MOD.LBL_SEARCH}

{$MOD.LBL_DATE_FROM} | {$MOD.LBL_DATE_TO} | Kategoria dokumentu |

{foreach from= $vat_value key= t item= w}
{if $w.sumavat != NULL}
{/if} {/foreach}
{$MOD.LBL_DOC_NUMBER} | {$MOD.LBL_CREATE_LAB} | {$MOD.LBL_SALE_DATE} | {$MOD.LBL_SALES_NIP} | {$MOD.LBL_LIST_SUBJECT} | {$MOD.LBL_ADDRESS} | {$MOD.LBL_BUYER_VALUE_BRUTTO} | {$MOD.LBL_BUYER_VALUE_NETTO} {$t} | {$MOD.LBL_VAT} {$t} | {$MOD.LBL_SUM_VAT}
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
{foreach from= $data key= k item= i}
{foreach from=$vat_value key=o item=j} {assign var=prawdafalsz value=false} {foreach from=$i.vaty item = e} {if $o == $e.vat_value} {assign var=prawdafalsz value=true} {assign var=prawdafalszvat value=$e.vat} {assign var=prawdafalsznetto value=$e.netto} {/if} {/foreach} {if $prawdafalsz == true }
{if $j.sumavat != NULL}
{/if} {else}
{if $j.sumavat != NULL}
{/if} {/if} {/foreach}
{$i.document_number} | {$i.document_date|date_format:"%d.%m.%Y"} | {$i.register_date|date_format:"%d.%m.%Y"} | {$i.to_vatid} | {$i.name} | {$i.register_address_postalcode} {$i.register_address_city} | {$i.value|number_format:2:",":"."} | {$prawdafalsznetto|number_format:2:",":"."} | {$prawdafalszvat|number_format:2:",":"."} | 0,00 | 0,00 | {$i.vatsumapozycja|number_format:2:",":"."}
{/foreach}
{foreach from=$vat_value key =o item=j}
{if $j.sumavat != NULL}
{/if} {/foreach}
{$MOD.LBL_SUM} |  | {$SumaBrutto|number_format:2:",":"."} | {$j.sumanetto|number_format:2:",":"."} | {$j.sumavat|number_format:2:",":"."} | {$SumaVat|number_format:2:",":"."}