Files
kupshop/admin/templates/printCenter/invoiceSimple.tpl
2025-08-02 16:30:27 +02:00

303 lines
7.3 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}
<style type="text/css" media="all">
{block "style"}
hr {
margin: 3px 0;
}
.print-footer {
text-align: center;
color: grey;
margin: auto;
padding-top: 5px;
font-size: 11px;
clear: both;
}
.print-header {
width: 675px;
border-bottom: 3px #000 solid;
padding-bottom: 3px;
}
.print-header table {
width: 75%;
font-size: 11px;
}
.print-main-content {
width: 675px;
font-size: 11px;
color: #000000;
font-family: Arial, Helvetica, sans-serif;
}
h1 {
margin: 0 0 10px;
font-size: 18px;
font-weight: normal;
padding: 3px 0;
width: 100%;
}
h1.bordered {
padding: 3px 5px;
margin: 0 0 10px;
border: 1px solid #000000;
border-top-width: 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;
}
.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;
padding-left: 2%;
}
.print-main-content-notes {
width: 50%;
clear: both;
}
.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;
}
.print-main-content .rowPayMark {
border-top: 2px #000 solid;
border-bottom: 2px #000 solid;
border-left: 2px #000 solid;
}
.print-main-content .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-left .small-table {
float: left;
}
.bottom-right {
float: left;
width: 40%;
margin-top: 20px;
}
h2.red-text {
color: #E54A4C;
font-size: 16px;
}
.print {
page-break-after: auto;
}
{/block}
</style>
<div class="print">
<div class="print-header">
{block "header"}
{/block}
</div>
<div class="print-main-content">
{block "invoice-header"}
<h1 class="bordered">Běžný daňový doklad {$order.order_no}</h1>
{/block}
<div class="print-main-content-left">
<h3>Výdejce:</h3>
<hr/>
<div class="print-column-50">
<p>
<strong>IČO:</strong> {$order.invoice_ico}<br/>
<strong>DIČ:</strong> {$order.invoice_dic}
</p>
</div>
<div class="print-column-50">
<p>
{if !$order.invoice_ico or !$order.invoice_firm}
{$order.invoice_name} {$order.invoice_surname}
<br/>
{/if}
{$order.invoice_firm}
</p>
</div>
<div class="print-column-50">
<p>
{$order.delivery_street} <br/>
{$order.delivery_zip} {$order.delivery_city}<br/>
{$order.delivery_country}
</p>
</div>
</div>
<div class="print-main-content-right">
<h3>Pokladní doklad - příjem hotovosti</h3>
<hr/>
<h2>Číslo {$order.order_no}</h2>
<hr/>
<div class="print-column-50">
<p>
<strong>Příjemce:</strong><br>
{$dbcfg.shop_firm_name} <br/>
{$dbcfg.shop_address|nl2br nofilter}<br/>
{$order.delivery_country}<br/>
</p>
</div>
<div class="print-column-50">
<p>
<strong>IČO:</strong> {$dbcfg.shop_ico}<br/><strong>DIČ: </strong>{$dbcfg.shop_dic}
</p>
</div>
</div>
<div class="print-main-content-notes">
{block "invoice-dates"}
<hr/>
<strong>Datum vystavení:</strong>
{if empty($order.date_handle)}{$smarty.now|date_format:"d.m.Y"}{else}{$order.date_handle|date_format:'d.m.Y'}{/if}
<br/>
<strong>Datum zdanit. plnění:</strong>
{$order.date_payment|date_format:'d.m.Y'}
<br/>
<br/>
{/block}
</div>
{block "items"}
<table width="100%" border="0" cellpadding="3" cellspacing="0" class="pieces">
<tr>
<th align="left">Popis</th>
<th align="center" width="10%">Cena/ks</th>
<th align="center" width="5%">Množství</th>
<th align="center" width="10%">DPH %</th>
<th align="center" width="10%">Cena</th>
</tr>
<tr>
<td align="left">Úhrada faktury {$order.order_no} </td>
<td align="right"></td>
<td align="center"></td>
<td align="center"></td>
<td align="right">{{$order->getRemainingPayment()/$dbcfg.rate}|format_price}</td>
</tr>
</table>
{/block}
<div class="bottom-left">
</div>
{block "pricebox"}
<div class="bottom-right">
<table width="80%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="left">Základ 0%</td>
<td align="right">{{$order->getRemainingPayment()/$dbcfg.rate}|format_price}</td>
</tr>
<tr>
<td align="left">
<hr/>
<u><strong>Uhrazeno hotově</strong></u></td>
<td align="right"><u><span class="current_price"><strong>{{$order->getRemainingPayment()/$dbcfg.rate}|format_price}</strong></span></u>
</td>
</tr>
<tr>
<td align="left"><strong>Slovy</strong></td>
<td align="right">{$slovy}
</td>
</tr>
</table>
</div>
{/block}
{* <div class="bottom-right">
{block "bottom-right"}
<img width="205" height="92" src="{$cfg.Addr.full}templates/images/signature.gif" class="signature"/>
{/block}
</div> *}
{block "signature"}
<table width="100%" border="0" style="margin:130px 0 50px 0;">
<tr>
<td align="left">Vydal:</td>
<td align="left">Přijal:</td>
<td align="left">razítko</td>
<td align="left">podpis</td>
</tr>
</table>
{/block}
</div>
<div class="print-footer">
{block "footer"}
{$dbcfg.invoice_footer}
{/block}
</div>
{block "bank_address"}
{/block}
</div>
{if $header.show == true}
</body>
</html>
{/if}