<style>
   .code {
      display: inline-block;
      width: auto;
      text-align: center;
      margin: 10px;
   }

   hr {
      border-color: black;
   }

   table tr {
      border-bottom: black dashed 1px;
   }
</style>

<h1>Objednávka {$order.order_no} {insert_barcode code=$order.order_no height=50}</h1>

Boxy:
{get_positions assign='box_positions' id_location=2 only_empty=true}
{foreach $box_positions as $position}
   <div class="code">
      {insert_barcode code=$position.code height=30}<br>{$position.code}
   </div>
{/foreach}

<hr>

<table width="100%" border="0" cellpadding="3" cellspacing="0" class="pieces">
   <tr>
      <th align="center" width="5%">{'quantity'|translate:'printOrder'}</th>
      <th align="left">{'description'|translate:'printOrder'}</th>
      <th align="center">ean</th>
      <th align="center">pozice</th>
   </tr>
   {foreach $order.items as $item}
      <tr {if $item@last}class="last"{/if}>
         <td>{$item.pieces}</td>
         <td>{$item.descr}</td>
         <td>
            {if $item.ean}
               <div class="code">
                  {insert_barcode type='EAN13' code=$item.ean height=30}<br>{$item.ean}
               </div>
            {else}
               Nemá EAN!!!
            {/if}
         </td>
         <td>
            {get_positions assign='item_positions' id_item=$item.id}
            {foreach $item_positions as $position}
               <div class="code">
                  {insert_barcode code=$position.code height=30}<br>{$position.code}
               </div>
            {/foreach}
         </td>
      </tr>
   {/foreach}
</table>

<hr>

Pár pozic:
{get_positions assign='box_positions'}
{foreach $box_positions as $position}
   <div class="code">
      {insert_barcode code=$position.code height=30}<br>{$position.code}
   </div>
{/foreach}
