91 lines
3.2 KiB
Smarty
91 lines
3.2 KiB
Smarty
{extends '[common]pdf/invoicePDF.tpl'}
|
|
|
|
{block "header-table"}
|
|
<td align="right" valign="bottom" width="136"><pdf:barcode value="{$reclamationSupplier.code}" type="code128" humanreadable="0" barheight="27" barWidth="1" /></td>
|
|
{/block}
|
|
|
|
{block "header-title"}
|
|
{t}Reklamace dodavateli{/t}: {$reclamation.code}
|
|
{/block}
|
|
|
|
{block "invoice-title"}
|
|
<h1 class="bordered">{t}Reklamace dodavateli{/t} {$reclamationSupplier.code}</h1>
|
|
{/block}
|
|
|
|
{block "invoice-dates"}
|
|
<table width="100%" class="dates">
|
|
<tr>
|
|
<td width="60%">
|
|
{get_datetime assign="now"}
|
|
<strong>{t}Vytvoření{/t}:</strong>
|
|
</td>
|
|
<td align="right" width="40%" style="padding-right: 1mm;">{$reclamationSupplier.date_created|format_date:'d.m.Y'}</td>
|
|
</tr>
|
|
|
|
{if $reclamationSupplier.date_handle}
|
|
<tr>
|
|
<td>
|
|
<strong>{t}Vyřízení{/t}:</strong>
|
|
</td>
|
|
<td align="right" style="padding-right: 1mm;"> {$reclamationSupplier.date_handle|format_date:'d.m.Y'}</td>
|
|
</tr>
|
|
{/if}
|
|
</table>
|
|
{/block}
|
|
|
|
{block "bank"}
|
|
{/block}
|
|
|
|
{block "customer-address"}
|
|
<table class="address">
|
|
<tr>
|
|
<td colspan="2">
|
|
<h2>{t}Dodavatel{/t}:</h2>
|
|
{$supplier.name}<br>
|
|
{$supplier.address|nl2br nofilter}<br>
|
|
{if $supplier.ico}{t}IČO{/t}: {$supplier.ico} {/if}<br>
|
|
{if $supplier.dic}{t}DIČ{/t}: {$supplier.dic}{/if}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{/block}
|
|
|
|
{block "delivery"}{/block}
|
|
|
|
|
|
{block "items"}
|
|
{* repeat znamena ze se bude opakovat hlavicka tabulky v pripade, ze se rozdeli na 2 stranky *}
|
|
<table class="product-list" repeat="1">
|
|
<tr>
|
|
<th style="text-align: center; width: 10mm;">{t}Ks{/t}</th>
|
|
|
|
<th style="text-align: left; width: 100%;">{t}Položky{/t}</th>
|
|
<th style="text-align: center; width: 60mm;">{t}EAN/Kód{/t}</th>
|
|
|
|
<th style="text-align: right; width: 35mm">{t}Reklamace zákazníka{/t}</th>
|
|
<th style="text-align: right; width: 60mm">{t}Kód u dodavatele{/t}</th>
|
|
<th style="text-align: left; width: 100mm">{t}Popis reklamace{/t}</th>
|
|
|
|
|
|
</tr>
|
|
{foreach $items as $item}
|
|
<tr {if $item@last && !$item.id_product}class="last"{/if}>
|
|
<td align="center">{$item.pieces}</td>
|
|
<td align="left">{$item.product_title}</td>
|
|
<td align="center" class="code"><div>{$item.product_ean|default:'-'} <b>/</b> {$item.product_code|default:'-'}</div></td>
|
|
<td align="center" class="code"><div>{$item.reclamation_code}</div></td>
|
|
<td align="center" class="code"><div>{$item.supplier_code}</div></td>
|
|
<td align="left"><div>
|
|
{if $item.data.reclamation_reason}
|
|
{substr($item.data.reclamation_reason|default:'',0,100)}
|
|
{else}
|
|
{substr($item.reclamation_reason|default:'',0,100)}
|
|
{/if}
|
|
</div></td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
{/block}
|
|
|
|
{block "invoice-bottom"}{/block}
|