{$invoice = true}
{block showPrices}
    {$showPrices=true}
{/block}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

   <title>{block "header-title"}{t}Účtenka{/t}{if $order.order_no}: {$order.order_no}{/if}{/block}</title>


   <style type="text/css" media="all">

      /* @formatter:off */
      {function page}{
         size: 290px 2000px;
      }
      {/function}

      {if $iteration}
      @page first{$iteration} {page iteration=$iteration}
      {else}
      @page {page iteration=$iteration}
      {/if}
      /* @formatter:on */

      {if !$iteration}
      @font-face {
         font-family: ArialFont;
         src: url(http://html2pdf.wpj.cz/fonts/arial.ttf);
      }

      @font-face {
         font-family: ArialFont;
         src: url(http://html2pdf.wpj.cz/fonts/arialbd.ttf);
         font-weight: bold;
      }

      body {
         color: #000000;
         font-family: ArialFont, sans-serif;
         font-size: 8pt;
      }

      .receipt {
          padding: 10px;
      }

      br {
        line-height: 0.1em;
      }

      p {
         margin: 0;
         padding-bottom: 0;
         padding-top: 0;
         word-break: break-all;
      }
      {/if}
   </style>
</head>
<body>
   <div class="print">
      <div class="receipt">
         {$receipt = $order->getData('transactionPrintout')}
         {get_formatted_receipt order=$order assign='receipt'}
         {if !empty($receipt)}
             {$receipt|nl2br nofilter}
         {/if}
      </div>
   </div>
</body>
</html>
