{strip}{block header}
"Datum vystaveni";
"Datum zd. plnění";
"Datum splatnosti";
"Číslo faktury";
"Měna";
{foreach $vats as $vat => $value}
   "Zaklad DPH {$vat}%";
   "DPH {$vat}%";
{/foreach}
"Celkem";
"Jméno";
"Přijmení";
"Firma";
"IČO";
"DIČ";
"Ulice";
"Město";
"PSČ";
"Stát";
"Telefon";
"Email";
"Zaokrouhlení";
"Doprava";
"Platba";
"Číslo balíku";
"Stav";
"Příznaky";{/block}{/strip}
{foreach $orders as $db_order}{$order = $this->getOrder($db_order.id)}{strip}
{block body}
      "{$order.date_handle->format('Y-m-d')}";
      "{$order.date_handle->format('Y-m-d')}";
      "{$order.date_handle->modify("+{$dbcfg->shop_due_days} days")->format('Y-m-d')}";
      "{$order.order_no}";
      "{$order.currency}";
      {$totalPrice = toDecimal(0)}
      {foreach $vats as $vat_value => $value}
         {$vat = $order.vats[$vat_value]}
         {if $vat}
            "{$vat.total_price_without_vat->printFloatValue(2)}";
            "{$vat.total_price_without_vat->mul(toDecimal($vat_value/100))->printFloatValue(2)}";

             {$totalPrice = $totalPrice->add(toDecimal($vat.total_price_without_vat->printFloatValue(2)))}
             {$totalPrice = $totalPrice->add(toDecimal($vat.total_price_without_vat->mul(toDecimal($vat_value/100))->printFloatValue(2)))}
         {else}
         "0";
         "0";
         {/if}
      {/foreach}
      "{$order.total_price->printFloatValue(2)}";
      "{$order.invoice_name}";
      "{$order.invoice_surname}";
      "{$order.invoice_firm}";
      "{$order.invoice_ico}";
      "{$order.invoice_dic}";
      "{$order.invoice_street}";
      "{$order.invoice_city}";
      "{$order.invoice_zip}";
      "{$order.invoice_country}";
      "{$order.invoice_phone}";
      "{$order.invoice_email}";
      "{$order.total_price->sub($totalPrice)}";
      {if empty($order->delivery_type)}
      "";
      "";
      {else}
      "{$order->getDeliveryType()->delivery}";
      "{$order->getDeliveryType()->payment}";
      {/if}
      "{$order.package_id}";
      {if $order.status_storno}"{$cfg.Order.Status.storno[$order.status_storno]}";
      {else}"{$cfg.Order.Status.global[$order.status]}";{/if}
      "{$order.flags}";{/block}{/strip}
{if $order@iteration is div by 100}{flush nocache}{/if}
{/foreach}
