{foreach $orders as $db_order}{$order = $this->getOrder($db_order.id)}{block body}OB_IN;{$order.order_no};DATUM_VYS;{if $order.date_accept}$order.date_accept->format('d.m.Y')}{/if};0
OB_IN;{$order.order_no};DATUM_SPL;{$order.date_handle->modify("+{$dbcfg->shop_due_days} days")->format('d.m.Y')};0
OB_IN;{$order.order_no};NAZEV_ODB;{$order.invoice_firm};0
OB_IN;{$order.order_no};ICO_ODB;{$order.invoice_ico};0
OB_IN;{$order.order_no};ULICE_ODB;{$order.invoice_street};0
OB_IN;{$order.order_no};PSC_ODB;{$order.invoice_zip};0
OB_IN;{$order.order_no};MESTO_ODB;{$order.invoice_city};0
OB_IN;{$order.order_no};STAT_ODB;{$order.invoice_country};0
OB_IN;{$order.order_no};PRIJ_ODB;{$order.invoice_name} {$order.invoice_surname};0
OB_IN;{$order.order_no};MOB_ODB;{$order.invoice_phone};0
OB_IN;{$order.order_no};EMAIL_ODB;{$order.invoice_email};0
OB_IN;{$order.order_no};MENA;{$order.currency};0
OB_IN;{$order.order_no};KURS;{$order.currency_rate};0
{foreach $order.items as $item}
POL_OBIN;{$order.order_no};SCISLO;{$item.code};{$item@iteration}
POL_OBIN;{$order.order_no};VYKON;{if !$item.code}{$item.descr}{/if};{$item@iteration}
POL_OBIN;{$order.order_no};MNOZSTVI;{$item.pieces};{$item@iteration}
POL_OBIN;{$order.order_no};CENA_MJ;{$item.piece_price.value_without_vat->printFloatValue(2)};{$item@iteration}
POL_OBIN;{$order.order_no};KOD_DPH;{$item.piece_price.vat};{$item@iteration}
POL_OBIN;{$order.order_no};SAZBA_DPH;{$item.piece_price.vat};{$item@iteration}
{/foreach}{/block}{/foreach}
