[INFO]
"1.05.4",0,1250,"Subiekt GT","GT","SubTest","Firma przykładowa systemu InsERT GT","Wrocław","54-445","Bławatkowa 25/3","111-111-11-11","MAG","Główny","Magazyn główny",,1,20170101000000,20170331000000,"Kowalski Jan",20170804155934,"Polska","PL",,0

{foreach from=$data item=i name=loop}
    [NAGLOWEK]
    "FS",1,0,0,"{$i.document_no}","FS","{$i.document_no}",,,"{$i.order_no}",,"{$i.parent_hash}","{$i.parent_short_name}","{$i.parent_name}","{$i.parent_address_city}","{$i.parent_address_postalcode}","{$i.parent_address_street}","{$i.parent_nip}","{$i.category}",,"Obrowo","{$i.register_date}","{$i.sell_date}","{$i.register_date}",1,0,,{$i.total_netto},{$i.total_vat},{$i.total_brutto},0,,,,"{$i.sell_date}",{$i.total_brutto},{$i.total_brutto},0,0,0,0,"",,,,,"PLN",,"",,,,0,,0,,,,,"",,

    [ZAWARTOSC]
    {foreach from=$i.vats item=vat name=vatloop}
    "{$vat.vat_name}",{$vat.vat_value},{$vat.netto},{$vat.vat},{$vat.brutto},0,0,0,0,0,0,0,0,0,0,0,0,0
    {/foreach}


{/foreach}

[NAGLOWEK]
"KONTRAHENCI"

[ZAWARTOSC]
{foreach from=$accounts item=a name=accountsLoop}
    0,"{$a.parent_hash}","{$a.parent_name}","{$a.parent_name}","{$a.parent_address_city}","{$a.parent_address_postalcode}","{$a.parent_address_street}","{$a.parent_country_code}",,,,,,,,,,,,,,,,,,,,,0
{/foreach}