322 lines
13 KiB
Smarty
322 lines
13 KiB
Smarty
{if $header.show == true}
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta http-equiv= "pragma" content="no-cache">
|
|
<title>Objednávka{if $order.order_no}: {$order.order_no}{/if}</title>
|
|
</head>
|
|
<body>
|
|
{/if} {literal}
|
|
|
|
<style type="text/css" media="all">
|
|
|
|
@media print {
|
|
|
|
}
|
|
|
|
#print-footer {
|
|
align: center; color: grey; margin-top:5px;
|
|
margin: auto;
|
|
padding-top: 5px;
|
|
font-size:11px;
|
|
}
|
|
|
|
#header
|
|
{
|
|
width:675px;
|
|
border-bottom: 3px #000 solid;
|
|
}
|
|
|
|
hr{
|
|
margin:3px 0;
|
|
}
|
|
|
|
#x1_ordPrntPrvw
|
|
{
|
|
width:675px;
|
|
font-size:9px;
|
|
}
|
|
|
|
|
|
#x1_ordPrntPrvw H1, #x1_ordPrntPrvw TD, #x1_ordPrntPrvw LEGEND
|
|
{
|
|
color: #000000;
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
#x1_ordPrntPrvw TD
|
|
{
|
|
font-size: 11px;
|
|
}
|
|
|
|
#x1_ordPrntPrvw H1 { font-size:18px; margin-top: 0; margin-bottom: 10px; font-weight:normal;}
|
|
|
|
#x1_ordPrntPrvw FIELDSET
|
|
{
|
|
padding: 0px 10px 10px 10px;
|
|
border:1px solid #999999;
|
|
}
|
|
|
|
#x1_ordPrntPrvw TH
|
|
{
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
color: #000000;
|
|
background-color:#CCCCCC;
|
|
padding: 2px;
|
|
border:1px solid #999999;
|
|
}
|
|
#x1_ordPrntPrvw .rowPayMark
|
|
{
|
|
border-top: 2px #000 solid;
|
|
border-bottom: 2px #000 solid;
|
|
border-left: 2px #000 solid;
|
|
}
|
|
#x1_ordPrntPrvw .rowPayMark2
|
|
{
|
|
border-top: 2px #000 solid;
|
|
border-bottom: 2px #000 solid;
|
|
border-right: 2px #000 solid;
|
|
|
|
}
|
|
.pieces td {
|
|
border-bottom: 1px dotted #000;
|
|
}
|
|
.last td {
|
|
border-bottom: 2px solid #000;
|
|
}
|
|
|
|
</style>
|
|
{/literal}
|
|
<!-- Hlavicka -->
|
|
<div class="print">
|
|
<div id="header">
|
|
<table width="675">
|
|
<tr>
|
|
<td align="left" width="100" valign="bottom"><strong>{$dbcfg.shop_firm_name}</strong></td>
|
|
<td align="left" width="100" valign="bottom"><strong>{$dbcfg.shop_address|nl2br nofilter}</strong></td>
|
|
<td align="left" width="100" valign="bottom"><strong>IČ: </strong>{$dbcfg.shop_ico}<br />
|
|
<strong>DIČ: </strong>{$dbcfg.shop_dic}</td>
|
|
<td align="left" width="100" valign="bottom"><!--<strong>Mob.: </strong><br />
|
|
<strong>Tel.: </strong>{$dbcfg.shop_phone}--></td>
|
|
<!--<td align="left" valign="bottom"><strong>Email: </strong>{$dbcfg.shop_email}
|
|
<br /><strong>Fax.: </strong>{$dbcfg.fax}</td>-->
|
|
|
|
<!--<td align="right" valign="bottom" width="100"><img src="{$cfg.Path.shared_version_http}admin/barcode.php?oID={$order.order_no}"></td>-->
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
<!-- Hlavicka End-->
|
|
<div id="x1_ordPrntPrvw">
|
|
|
|
{block "invoice-header"}
|
|
<h1 style="float: right; border: 1px #000 solid; padding: 3px;">Objednávka{if $order.order_no}: {$order.order_no}{/if}</h1>
|
|
<h1 style="padding: 3px;">{if $order.status}FAKTURA - daňový doklad{else}Rekapitulace objednávky{/if}</h1>
|
|
{/block}
|
|
|
|
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" >
|
|
<tr>
|
|
<td width="50%" colspan="2" rowspan="5" align="left" valign="middle">
|
|
<!--<strong>{$order.shop_firm_name}</strong>--> <img src="{$cfg.Addr.full}templates/images/shop_logo.gif" /></td>
|
|
<td width="" align="left" valign="top"><strong>Odběratel:</strong> <hr color="#000000"/></td>
|
|
<td width="" align="left" valign="bottom"> <hr color="#000000"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><strong><big>
|
|
{$order.invoice_name}
|
|
{$order.invoice_surname} {$order.invoice_firm}
|
|
</big></strong></td>
|
|
<td><p>{$order.invoice_street} <br/>
|
|
{$order.invoice_zip} {$order.invoice_city}<br/>
|
|
{$order.invoice_country}
|
|
</p></td>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
|
|
<td width="15%" align="left">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<td width="15%" align="left"><strong>Telefon:</strong></td>
|
|
<td align="left">{$order.invoice_phone}</td>
|
|
</tr>
|
|
<!-- <tr>
|
|
<td width="15%" align="left"><strong>Fax:</strong></td>
|
|
<td align="left">{$order.shop_fax}</td>
|
|
</tr>-->
|
|
<tr>
|
|
<td width="49" align="left"><strong>Datum:</strong><hr color="#000000" width="100" align="left"/></td>
|
|
<td width="50" align="left">{if $order.status}<strong>Bankovní účet:</strong><hr color="#000000" width="100" align="left"/>{/if}</td>
|
|
|
|
<td align="left"><strong>Email:</strong> </td>
|
|
<td align="left"><strong></strong> {$order.invoice_email}</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="8%" align="left"><strong>Vystavení: </strong>{$order.date_handle|date_format:'d.m.Y'}</td>
|
|
<td width="7%" align="left"><!--<strong>Konst. symbol:</strong> {$order.provider.bank.konstsym}--></td>
|
|
<td align="left"><strong>IČO:</strong> {$order.invoice_ico}</td>
|
|
<td align="left"><strong>DIČ:</strong> {$order.invoice_dic}</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="8%" align="left"><strong>Zd. plnění:</strong><!-- pryc cas --> {$order.date_handle|date_format:'d.m.Y'}</td>
|
|
<td width="7%" align="left">{if $order.status}<strong>Var. symbol: </strong>{$order.order_no}{/if}</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="1" align="left" valign="top">
|
|
{if $order.status}
|
|
<strong>Splatnosti:</strong> <!-- datum + 14dni -->{$order.date_payment}
|
|
{/if}
|
|
</td>
|
|
<td rowspan="1" align="left">{if $order.status}<p><strong>Číslo účtu: </strong><br />
|
|
{if $dbcfg.bank_account_prefix}{$dbcfg.bank_account_prefix}-{/if}{$dbcfg.bank_account_number}/{$dbcfg.bank_code}
|
|
</p>{/if}
|
|
</td>
|
|
<td align="left" valign="bottom" rowspan="1"><strong>Dodací údaje:</strong><hr color="#000000"/></td>
|
|
<td width="15%" rowspan="1" align="left" valign="bottom">
|
|
<hr color="#000000"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" align="left" valign="top"><strong>Způsob odběru:</strong> <br />{$order.delivery_type}<br />
|
|
<!--<strong>Dodat pouze kompletní objednávku:</strong> {if
|
|
$order.delivery_complete}ANO{else}NE{/if} <br />
|
|
|
|
<strong>Stav objednávky:</strong>
|
|
{$order.status} {if $order.dateHandle}
|
|
({$order.date_handle}) {elseif $order.date_accept}
|
|
({$order.date_accept}) {/if} -->
|
|
|
|
</td>
|
|
<td width="15%" align="left" valign="top"><strong><big>{$order.delivery_name}
|
|
{$order.delivery_surname} {$order.delivery_firm}</big></strong></td>
|
|
<td width="15%" align="left" valign="top">{$order.delivery_street}<br />
|
|
{$order.delivery_zip}
|
|
{$order.delivery_city}<br />
|
|
{$order.delivery_country}</td>
|
|
</tr>
|
|
</table>
|
|
{if $order.note_user != "" || $order.note_admin != ""}
|
|
<strong>Poznámky</strong>
|
|
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
|
|
{if $order.note_user != ""}
|
|
<tr>
|
|
{* todo nyni jsou poznamky pomoci json, je rict jak nebo co vypsat *}
|
|
<td width="17%" align="left"><strong>Pro obchodníka:</strong></td>
|
|
<td width="83%" align="left">{* $order.note_user *}</td>
|
|
</tr>
|
|
{/if} {if $order.note_admin != ""}
|
|
<tr>
|
|
<td width="17%" align="left"><strong>Pro zákazníka:</strong></td>
|
|
<td width="83%" align="left">{* $order.note_admin *}</td>
|
|
</tr>
|
|
{/if}
|
|
</table>
|
|
{/if} <br />
|
|
<table width="100%" border="0" cellpadding="3" cellspacing="0" class="pieces">
|
|
<tr>
|
|
<th align="center" width="5%">Ks</th>
|
|
<th align="left">Položky</th>
|
|
{if $order.status}<th align="center" width="5%">Kód</th>{/if}
|
|
<th align="center" width="10%">Cena za kus</th>
|
|
<th align="center" width="10%">bez DPH</th>
|
|
<th align="center" width="10%">DPH %</th>
|
|
<th align="center" width="10%">DPH</th>
|
|
<th align="right" width="10%">s DPH</th>
|
|
</tr>
|
|
{foreach $order.items as $item}
|
|
<tr {if $item@last}class="last"{/if}>
|
|
<td align="center">{$item.pieces}</td>
|
|
<td align="left">{$item.descr}{if $item.note} <br>({$item.note}){/if}</td>
|
|
{if $order.status}<td align="center">{$item.code}{if !$item.code}{$item.ean}{/if}<br>{$item.note}</td>{/if}
|
|
<td align="right">{if $dbcfg.prod_show_price_vat == "Y"}{{$item.price_with_vat}|round:2}{else}{{$item.price_without_vat}|round:2}{/if}</td>
|
|
<td align="center">{{$item.price_without_vat}|round:2}</td>
|
|
<td align="center">{$item.vat} </td>
|
|
<td align="center">{{$item.price_with_vat - $item.price_without_vat}|round:2}</td>
|
|
<td align="right">{if $dbcfg.prod_show_price_vat == "Y"}{{$item.pieces * $item.price_with_vat}|format_price:"ceil=no"}{else}{{$item.pieces * $item.price_without_vat}|format_price:"ceil=no"}{/if}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
<br />
|
|
<div style="float: left; position:relative; width: 400px;">
|
|
<table border="0" cellpadding="3" cellspacing="0">
|
|
<tr>
|
|
<th> </th>
|
|
<th width="25%" align="right">Bez daně</th>
|
|
<th width="25%" align="right">Daň</th>
|
|
<th align="right" width="25%">Celkem</th>
|
|
</tr>
|
|
{$order_price_with_vat = 0}
|
|
{$order_price_without_vat = 0}
|
|
{foreach $order.vats as $key => $vat}
|
|
|
|
{$with_vat = $vat.total_price_without_vat * (1+($key/100))}
|
|
{$vat_price = $vat.total_price_without_vat * ($key/100)}
|
|
<tr>
|
|
<td align="left">{if empty($vat.descr)}{$key}% daň{else}{$vat.descr}{/if}</td>
|
|
<td align="right">{$vat.total_price_without_vat|format_price:"ceil=no"}</td>
|
|
<td align="right">{$vat_price|format_price:"ceil=no"}</td>
|
|
<td align="right">{$with_vat|format_price:"ceil=no"}</td>
|
|
</tr>
|
|
{$order_price_without_vat = $order_price_without_vat+ $vat.total_price_without_vat}
|
|
{$order_price_with_vat = $order_price_with_vat + $with_vat}
|
|
{/foreach}
|
|
<tr>
|
|
<td align="left">Celkem bez DPH</td>
|
|
<td align="right" colspan="3"><span class="price">{$order_price_without_vat|format_price:"ceil=no"}</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left">Celkem s DPH</td>
|
|
<td align="right" colspan="3"><span class="price">{$order_price_with_vat|format_price:"ceil=no"}</span></td>
|
|
</tr>
|
|
{*if $body.totalPriceDiscount}
|
|
<tr>
|
|
<td align="left">Uplatněné slevy</td>
|
|
<td align="right" colspan="3"><span class="price">{$body.totalPriceDiscount}</span></td>
|
|
</tr>
|
|
{/if*}
|
|
<tr>
|
|
<td align="left" class="rowPayMark" colspan="2"><u><strong>{if $order.status}Celkem k úhradě{else}Cena celkem{/if}</strong></u></td>
|
|
<td class="rowPayMark2" align="right" colspan="2"><u><span class="current_price"><strong>{$order_price_with_vat|format_price}</strong></span></u></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{if $order.status}
|
|
{if $order.delivery.transport|stristr:"osobn"}
|
|
<h2 style="font-size: 25px; color:red; float:right; margin: 0 12px 0 0; padding:0;">Osobní převzetí!</h2><br>
|
|
{/if}
|
|
{if $order.delivery.country|stristr:"slovensk"}
|
|
<h2 style="font-size: 25px; color:red; float:right; margin: 0 17px 0 0; padding:0;">Objednávka SK!</h2><br>
|
|
{/if}
|
|
{if $order.delivery.transport|stristr:"převodem"}
|
|
<h2 style="font-size: 25px; color:red; float:right; margin: 0 8px 0 0; padding:0;">Platba převodem!</h2><br>
|
|
{/if}
|
|
<p style="padding:0px; margin:0 25px 0 0; float:right;"><strong>Faktura slouží jako záruční list! </strong>
|
|
</p>
|
|
<div style="float: right; margin-top: 10px; margin-right: 0px; color: grey; position:relative;">
|
|
</div>
|
|
{else}
|
|
{if $order.delivery.transport|stristr:"převodem"}
|
|
<p style="padding:0px; margin:0 25px 0 0; float:right;"><strong>Neplaťte prosím, dokud Vás nevyzveme!</strong></p>
|
|
{/if}
|
|
{/if}
|
|
|
|
{** <img width="205" height="92" src="{$cfg.Addr.full}templates/images/signature.gif" /> **}
|
|
</div><br /><hr style="border:medium none;
|
|
clear:both;
|
|
height:1px;
|
|
margin:-1px 0 0;
|
|
padding:0;" />
|
|
<div id="print-footer">
|
|
{block 'footer'}
|
|
obchod používá systém <a href="https://www.wpjshop.cz/">wpjshop.cz</a>
|
|
{/block}
|
|
</div>
|
|
</div>
|
|
{if $header.show == true}
|
|
</body>
|
|
</html>
|
|
{/if} |