first commit
This commit is contained in:
428
admin/templates/printCenter/invoiceForeign.tpl
Normal file
428
admin/templates/printCenter/invoiceForeign.tpl
Normal file
@@ -0,0 +1,428 @@
|
||||
{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>Order{if $order.order_no}: {$order.order_no}{/if}</title>
|
||||
</head>
|
||||
<body>
|
||||
{/if}
|
||||
<style type="text/css" media="all">
|
||||
{block "style"}
|
||||
|
||||
* {
|
||||
-webkit-box-sizing:border-box;
|
||||
-moz-box-sizing:border-box;
|
||||
box-sizing:border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #000000;
|
||||
line-height: 1.2;
|
||||
font-size: 11px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.print {
|
||||
width: 715px; /* 675 obsah + 20 + 20 padding */
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 3px 0;
|
||||
border: 0;
|
||||
border-top: 1px solid #DBDBDB;
|
||||
}
|
||||
|
||||
.print-footer {
|
||||
text-align: center;
|
||||
padding: 15px 0;
|
||||
color: grey;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.print-header {
|
||||
border-bottom: 3px solid black;
|
||||
font-weight: bold;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
|
||||
.print-header table {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.print-header td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 18px;
|
||||
font-weight: normal;
|
||||
padding: 3px 0;
|
||||
width: 50%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
h1.bordered {
|
||||
padding: 3px 5px;
|
||||
margin: 0 0 10px;
|
||||
border: 1px solid #000000;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-size: 11px;
|
||||
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;
|
||||
}
|
||||
|
||||
.content-left {
|
||||
width: 50%;
|
||||
float: left;
|
||||
padding-right: 5%;
|
||||
}
|
||||
|
||||
.content-right {
|
||||
width: 50%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.print-column-50 {
|
||||
float: left;
|
||||
width: 50%;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.print-main-content td {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.print-main-content th {
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
background-color: #CCCCCC;
|
||||
padding: 2px;
|
||||
border: 1px solid #999999;
|
||||
}
|
||||
|
||||
.rowPayMark {
|
||||
border-top: 2px #000 solid;
|
||||
border-bottom: 2px #000 solid;
|
||||
border-left: 2px #000 solid;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.bottom-left {
|
||||
float: left;
|
||||
width: 60%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.bottom-right {
|
||||
float: left;
|
||||
width: 40%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.img-responsive {
|
||||
max-width: 100%;
|
||||
height: auto !important;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.storno {
|
||||
font-size: 90px;
|
||||
color: red;
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: -110px;
|
||||
z-index: 100;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
-moz-transform: rotate(-45deg);
|
||||
-o-transform: rotate(-45deg);
|
||||
-ms-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
transform-origin: 100% 0%;
|
||||
-webkit-transform-origin: 100% 0%;
|
||||
-ms-transform-origin: 100% 0%;
|
||||
}
|
||||
{/block}
|
||||
</style>
|
||||
|
||||
{$rate = toDecimal($dbcfg.rate)}
|
||||
|
||||
<div class="print">
|
||||
<div class="print-header">
|
||||
{block "storno"}
|
||||
{if $order.status_storno}
|
||||
<div style="position: relative">
|
||||
<div class="storno">STORNOVÁNO</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block "header"}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{block "firm-name"}{$dbcfg.shop_firm_name}<br />{$dbcfg.shop_firm_owner}{/block}</td>
|
||||
<td>{$dbcfg.shop_address|nl2br nofilter}</td>
|
||||
<td>IČO: {$dbcfg.shop_ico}<br/>{if $dbcfg.shop_dic}DIČ: {$dbcfg.shop_dic}{/if}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
<div class="print-main-content">
|
||||
{block "invoice-header"}
|
||||
<h1>{if $order.status}{'tax_document'|translate:'printOrder'}{else}{'recapitulation'|translate:'printOrder'}{/if}</h1>
|
||||
|
||||
<h1 class="bordered">{'invoice_number'|translate:'printOrder'}{if $order.order_no}: {$order.order_no}{/if}</h1>
|
||||
{/block}
|
||||
<div class="content-left">
|
||||
{block "invoice-logo"}
|
||||
<img style="margin-bottom: 15px;" src="{$cfg.Addr.full}templates/images/{$cfg.Modules.orders.invoice_logo|default:'logo.png'}"
|
||||
alt="{$dbcfg.shop_firm_name}" class="img-responsive">
|
||||
{/block}
|
||||
|
||||
<h2>{'date'|translate:'base'}:</h2>
|
||||
<hr/>
|
||||
<p>
|
||||
{get_datetime assign="now"}
|
||||
{$date_handle = $order.date_handle|default:$now}
|
||||
<strong>{'isurring_date'|translate:'printOrder'}:</strong> {$date_handle|format_date:'d.m.Y'}<br/>
|
||||
{if $order.status}
|
||||
<strong>{'fulfiment_date'|translate:'printOrder'}:</strong> {$order.date_handle|date_format:'d.m.Y'}
|
||||
{/if}
|
||||
{block "due_date"}
|
||||
{if $order.status}
|
||||
<br/><strong>{'due_date'|translate:'printOrder'}:</strong>
|
||||
{if !empty($order.date_due)}
|
||||
{$order.date_due|format_date:'d.m.Y'}
|
||||
{else}
|
||||
{$dueDateIn = date_interval_create_from_date_string($dbcfg.shop_due_days|cat:" days")}
|
||||
{if $dueDateIn}
|
||||
{$date_handle->add($dueDateIn)|format_date:'d.m.Y'}
|
||||
{else}
|
||||
{$date_handle|format_date:'d.m.Y'}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
</p>
|
||||
|
||||
<h2>{'bank_account'|translate:'printOrder'}:</h2>
|
||||
<hr/>
|
||||
{block "bank"}
|
||||
{if $order.status}
|
||||
<p>
|
||||
<strong>{'variable_symbol'|translate:'printOrder'}:</strong> {$order.order_no}<br/>
|
||||
<strong>{'due_date'|translate:'printOrder'}:</strong> {$order.date_payment|date_format:'d.m.Y'}<br/>
|
||||
<strong>{'account_number'|translate:'printOrder'}:</strong> {if $dbcfg.bank_account_prefix}{$dbcfg.bank_account_prefix}-{/if}{$dbcfg.bank_account_number}/{$dbcfg.bank_code}<br/>
|
||||
{if $dbcfg.bank_iban || $dbcfg.bank_swift}
|
||||
<strong>IBAN:</strong> {$dbcfg.bank_iban}<br>
|
||||
<strong>SWIFT/BIC:</strong> {$dbcfg.bank_swift}
|
||||
{/if}
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
<h2>{'payment_method'|translate:'printOrder'}:</h2>
|
||||
<hr/>
|
||||
<p>{$order.delivery_type}</p>
|
||||
</div>
|
||||
|
||||
<div class="content-right">
|
||||
<h2>{'consumer'|translate:'printOrder'}:</h2>
|
||||
<hr/>
|
||||
<div class="print-column-50">
|
||||
<h3>{if !$order.invoice_ico or !$order.invoice_firm}{$order.invoice_name} {$order.invoice_surname} <br/> {/if}{$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>{'phone'|translate:'printOrder'}:</strong> {$order.invoice_phone}<br/>
|
||||
<strong>{'email'|translate:'printOrder'}:</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>
|
||||
|
||||
<h2>{'receiver'|translate:'printOrder'}:</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>
|
||||
</div>
|
||||
|
||||
{block "items"}
|
||||
<table width="100%" border="0" cellpadding="3" cellspacing="0" class="pieces">
|
||||
<tr>
|
||||
<th align="center" width="3%">{'quantity'|translate:'printOrder'}</th>
|
||||
<th align="left">{'description'|translate:'printOrder'}</th>
|
||||
{if $order.status}
|
||||
<th align="center" width="5%">{'code'|translate:'printOrder'}</th>
|
||||
{/if}
|
||||
<th style="text-align: right;" width="10%">{'unit_price'|translate:'printOrder'}</th>
|
||||
<th style="text-align: right;" width="10%">{'without_vat'|translate:'printOrder'}</th>
|
||||
<th style="text-align: right;" width="6%">{'vat'|translate:'printOrder'} %</th>
|
||||
<th style="text-align: right;" width="10%">{'price_vat'|translate:'printOrder'}</th>
|
||||
<th style="text-align: right;" width="10%">{'price_with_vat'|translate:'printOrder'}</th>
|
||||
</tr>
|
||||
{foreach $order.items as $item}
|
||||
<tr {if $item@last && !$item.id_product}class="last"{/if}>
|
||||
<td align="center">{$item.pieces}</td>
|
||||
<td align="left">{$item.descr} {if !$item.discount->isZero()}( -{$item.discount|format_price:'printcurrency=no'} %){/if}{if $item.note && $item.product} <br>({$item.product->printNote($item.note)}){/if}</td>
|
||||
{if $order.status}
|
||||
<td align="center">{$item.code}{if !$item.code}{$item.ean}{/if}
|
||||
<br>
|
||||
{$item.note}</td>
|
||||
{/if}
|
||||
<td style="text-align: right;">{$item.value_with_vat_no_rounding->div($rate)|format_price:"printcurrency=no"}</td>
|
||||
<td style="text-align: right;">{$item.total_price.value_without_vat_no_rounding->div($rate)|format_price:"ceil=no;printcurrency=no"}</td>
|
||||
<td style="text-align: right;">{$item.vat} </td>
|
||||
<td style="text-align: right;">{($item.total_price.value_with_vat_no_rounding->sub($item.total_price.value_without_vat_no_rounding)->div($rate))|format_price:"ceil=no;printcurrency=no"}</td>
|
||||
<td style="text-align: right;">{$item.total_price.value_with_vat_no_rounding->div($rate)|format_price:"ceil=no;printcurrency=no"} €</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/block}
|
||||
|
||||
|
||||
<div class="bottom-left">
|
||||
<table class="small-table" border="0" cellpadding="3" cellspacing="0">
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th width="25%" align="right">{'without_vat'|translate:'printOrder'}</th>
|
||||
<th width="20%" align="right">{'price_vat'|translate:'printOrder'}</th>
|
||||
<th align="right" width="25%">{'total_price'|translate:'printOrder'}</th>
|
||||
</tr>
|
||||
{foreach $order.vats as $key => $vat}
|
||||
<tr>
|
||||
<td align="left">{if empty($vat.descr)}Daň {$key}%{else}{$vat.descr}{/if}</td>
|
||||
<td align="right">{{$vat.total_price_without_vat->div($rate)}|format_price:"ceil=no;printcurrency=no"} €</td>
|
||||
<td align="right">{$vat.tax.value_vat->div($rate)|format_price:"ceil=no;printcurrency=no"}</td>
|
||||
<td align="right">{$vat.tax.value_with_vat->div($rate)|format_price:"ceil=no;printcurrency=no"} €</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
<tr>
|
||||
<td align="left">{'total_price_without_vat'|translate:'printOrder'}</td>
|
||||
<td align="right" colspan="3">
|
||||
{$order.total_price_array.value_without_vat_no_rounding->div($rate)|format_price:"ceil=no;printcurrency=no"} €
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">{'total_price_with_vat'|translate:'printOrder'}</td>
|
||||
<td align="right" colspan="3">
|
||||
{$order.total_price_array.value_with_vat_no_rounding->div($rate)|format_price:"ceil=no;printcurrency=no"} €
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if findModule('order_payment')}
|
||||
{$payment = $order->getPayments()}
|
||||
{$payment = toDecimal($payment)}
|
||||
{if $payment-> isPositive()}
|
||||
<tr>
|
||||
<td align="left">Úhrada</td>
|
||||
<td align="right" colspan="3">{$payment->div($rate)|format_price:"ceil=no;printcurrency=no"} €</td>
|
||||
</tr>
|
||||
{elseif $payment -> isNegative()}
|
||||
<tr>
|
||||
<td align="left">Přeplatek</td>
|
||||
<td align="right" colspan="3">{$payment->div($rate)|format_price:"ceil=no;printcurrency=no"} €</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<td align="left" class="rowPayMark" colspan="2"><u><strong>{'total_to_pay'|translate:'printOrder'}</strong></u></td>
|
||||
<td class="rowPayMark2" align="right" colspan="2"><u><span class="current_price"><strong>{if $dbcfg.rate} {{$order->getRemainingPayment()/$dbcfg.rate}|format_price:"ceil=no;printcurrency=no"} €{else}{{$order->getRemainingPayment()/$dbcfg.rate}|format_price:"ceil=no;printcurrency=no"}{/if}</strong></span></u>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{if $dbcfg.rate}
|
||||
<p style="font-weight: 700; padding-top: 20px;">{'currencyRate'|translate:'printOrder'}: 1 EUR = {$dbcfg.rate} CZK</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="bottom-right">
|
||||
{block "bottom-right"}
|
||||
{if $order.status}
|
||||
<p><strong>{'invoice_as_warranty_list'|translate:'printOrder'}</strong></p>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{if $module.EET}
|
||||
{$eetOrderDispatcher = getSymfonyService('kupshop.eet.dispatcher')}
|
||||
{$eet = $eetOrderDispatcher->getOrderInfo($order)}
|
||||
|
||||
{if $eet}
|
||||
<p>{if $eet->getFik()}
|
||||
Tržba byla evidována v běžném režimu<br>
|
||||
Fik: {$eet->getFik()}<br>
|
||||
{else}
|
||||
Tržba byla evidována ve zjednodušeném režimu<br>
|
||||
Pkp: {$eet->getPkp()}<br>
|
||||
{/if}
|
||||
Bkp: {$eet->getBkp()}<br>
|
||||
|
||||
Provozovna: {$eetOrderDispatcher->getPlace()}, Pokladna: {$eetOrderDispatcher->getCashier()}<br>
|
||||
Datum platby: {$eet->getdateSent()|format_date:'d.m.Y H:i:m'}
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="print-footer">
|
||||
{block "footer"}
|
||||
<p>obchod používá systém <a href="https://www.wpjshop.cz/">wpjshop.cz</a></p>
|
||||
{/block}
|
||||
</div>
|
||||
{block "bank_address"}
|
||||
{/block}
|
||||
</div>
|
||||
{if $header.show == true}
|
||||
</body>
|
||||
</html>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user