260 lines
8.1 KiB
Smarty
260 lines
8.1 KiB
Smarty
<style type="text/css" media="all">
|
|
{block "style"}
|
|
hr {
|
|
margin: 3px 0;
|
|
border: 0;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
* {
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.print-footer {
|
|
text-align: center;
|
|
color: grey;
|
|
margin: auto;
|
|
padding-top: 5px;
|
|
font-size: 11px;
|
|
clear: both;
|
|
}
|
|
|
|
.print {
|
|
width: 675px;
|
|
font-size: 12px;
|
|
color: #000000;
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0 0 10px;
|
|
font-size: 18px;
|
|
font-weight: normal;
|
|
padding: 3px 0;
|
|
}
|
|
|
|
h2 {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
padding: 3px 0 0;
|
|
clear: both;
|
|
}
|
|
|
|
h3 {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
padding: 3px 3px 3px 0;
|
|
clear: both;
|
|
}
|
|
|
|
.print-main-content .print-main-content-left {
|
|
width: 50%;
|
|
float: left;
|
|
padding-right: 5%;
|
|
}
|
|
|
|
.print-main-content .print-main-content-right {
|
|
width: 50%;
|
|
float: left;
|
|
}
|
|
|
|
.print-main-content-notes {
|
|
width: 50%;
|
|
clear: both;
|
|
}
|
|
|
|
.print-column-50 {
|
|
float: left;
|
|
width: 50%;
|
|
padding-right: 3px;
|
|
}
|
|
|
|
.print-main-content td {
|
|
font-size: 12px;
|
|
border-bottom: 1px solid #ccc;
|
|
}
|
|
|
|
.print-main-content th {
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
color: #000000;
|
|
background-color: #CCCCCC;
|
|
padding: 2px;
|
|
border: 1px solid #999999;
|
|
}
|
|
|
|
.pricebox {
|
|
border-collapse: collapse;
|
|
width: 200px;
|
|
margin-top: 20px;
|
|
border: 1px solid #aaa;
|
|
}
|
|
|
|
.pricebox td {
|
|
padding: 5px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
border: 0;
|
|
}
|
|
|
|
{/block}
|
|
</style>
|
|
|
|
<div class="print">
|
|
<h1>Byla přijata objednávka <a href="{admin_url type='order' ID=$order->id absolute=1}">{$order->order_no}</a></h1>
|
|
|
|
<div class="print-main-content">
|
|
{block "order-info"}
|
|
<div class="print-main-content-left">
|
|
<h2>Zákazník:</h2>
|
|
<hr/>
|
|
<div class="print-column-50">
|
|
<h3>{$order.invoice_name} {$order.invoice_surname} <br/> {$order.invoice_firm}</h3>
|
|
</div>
|
|
<div class="print-column-50">
|
|
<p>
|
|
{$order.invoice_street} <br/>
|
|
{$order.invoice_zip} {$order.invoice_city}<br/>
|
|
{$order.invoice_country}
|
|
</p>
|
|
</div>
|
|
<div class="print-column-50">
|
|
<p>
|
|
<strong>Telefon:</strong> {$order.invoice_phone}<br/>
|
|
<strong>Email:</strong> {$order.invoice_email}
|
|
</p>
|
|
</div>
|
|
<div class="print-column-50">
|
|
<p>
|
|
<strong>IČO:</strong> {$order.invoice_ico}<br/>
|
|
<strong>DIČ:</strong> {$order.invoice_dic}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="print-main-content-right">
|
|
<h2>Dodací údaje:</h2>
|
|
<hr/>
|
|
<div class="print-column-50">
|
|
<h3>{$order.delivery_name} {$order.delivery_surname} <br/> {$order.delivery_firm}</h3>
|
|
</div>
|
|
<div class="print-column-50">
|
|
<p>
|
|
{$order.delivery_street} <br/>
|
|
{$order.delivery_zip} {$order.delivery_city}<br/>
|
|
{$order.delivery_country}
|
|
</p>
|
|
</div>
|
|
|
|
<h2>Způsob doručení:</h2>
|
|
<hr/>
|
|
<p>
|
|
{$order.delivery_type}
|
|
{$deliveryData = $order->getData('delivery_data')}
|
|
{$deliveryType = $order->getDeliveryType()}
|
|
{if $deliveryData && $deliveryType}
|
|
<br>
|
|
{$deliveryType->getDelivery()->printDeliveryInfo() nofilter}
|
|
{/if}
|
|
</p>
|
|
</div>
|
|
{$tmp = $order->fetchNotes()}
|
|
<div class="print-main-content-notes">
|
|
{if $order.note_user != "" }
|
|
<h2>Poznámka zákazníka:</h2>
|
|
<hr/>
|
|
<p>{$order.note_user} </p>
|
|
{/if}
|
|
</div>
|
|
{/block}
|
|
|
|
{block "items-table"}
|
|
<table width="100%" border="0" cellpadding="3" cellspacing="0" class="pieces">
|
|
<tr>
|
|
<th width="3%">Ks</th>
|
|
<th>Produkt</th>
|
|
<th width="5%">Kód</th>
|
|
{if $dbcfg.prod_subtract_from_store == "Y"}
|
|
<th colspan="3" style="text-align: right;" width="5%">Pohyb skladu</th>
|
|
{/if}
|
|
<th style="text-align: right;" width="10%">Cena</th>
|
|
</tr>
|
|
|
|
{$totalPieces = 0}
|
|
{$tmp = $order->fetchItems()}
|
|
{$order->fetchItemsSuppliers()}
|
|
{foreach $order.items as $item}
|
|
{if $item.note['item_type'] != 'delivery'}
|
|
{$totalPieces = $totalPieces + $item.pieces}
|
|
{/if}
|
|
|
|
<tr>
|
|
<td align="center">{$item.pieces}</td>
|
|
<td align="left">
|
|
{block "product-title"}
|
|
{if $item.id_product}
|
|
<a href="{url s='redir' type='product' id=$item.id_product absolute="1"}">{$item.descr}</a>
|
|
{else}
|
|
{$item.descr}
|
|
{/if}
|
|
{if $item.note} <br>{if !empty($item.product) && method_exists($item.product, 'printNote')}({$item.product->printNote($item.note)}){/if}{/if}
|
|
{/block}
|
|
</td>
|
|
<td align="center">
|
|
{$item.code}{if !$item.code}{$item.ean}{/if}
|
|
</td>
|
|
|
|
{if $dbcfg.prod_subtract_from_store == "Y"}
|
|
<td width="1" style="text-align: right;white-space: nowrap;padding-left: 5px;"><b>{floatval($item.in_store) + $item.pieces}</b></td>
|
|
<td width="1" style="white-space: nowrap">-></td>
|
|
<td width="1" style="text-align: right;white-space: nowrap;padding-left: 0;">
|
|
{strip}
|
|
<b>{$item.in_store}</b>
|
|
{if {$item.id_product} && ({find_module name="products_suppliers"} || {find_module name="orders_of_suppliers"})}
|
|
<a href="{admin_url type='stockInOrder' IDp=$item.id_product IDv=$item.id_variation absolute=1}">
|
|
{foreach from=$item.suppliers item=supplier key=key}
|
|
/
|
|
<span title="{$supplier.name} - {$supplier.code}">
|
|
{$supplier.in_store}
|
|
</span>
|
|
{/foreach}
|
|
</a>
|
|
{/if}
|
|
{/strip}
|
|
</td>
|
|
{/if}
|
|
<td align="right" style="white-space: nowrap">
|
|
{$item.total_price.value_with_vat_no_rounding|format_price:"ceil=no;decimal=dynamic"}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
{/block}
|
|
|
|
{block "price-box"}
|
|
<table class="pricebox">
|
|
{if $totalPieces}
|
|
<tr>
|
|
<td class="final-left" align="left">Kusů celkem</td>
|
|
<td class="final-right" align="right">{$totalPieces}</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
<tr>
|
|
<td class="final-left" align="left">Cena celkem</td>
|
|
<td class="final-right" align="right">{$order.total_price_array.value_with_vat_no_rounding|format_price:"ceil=no"}</td>
|
|
</tr>
|
|
</table>
|
|
{/block}
|
|
</div>
|
|
|
|
<div class="print-footer">
|
|
{block "footer"}
|
|
<p>Váš wpjshop.cz</p>
|
|
{/block}
|
|
</div>
|
|
</div>
|