{if $header.show == true} Objednávka{if $order.order_no}: {$order.order_no}{/if} {/if}
{block "print-content"}
{block "invoice-header"}

{if $order.status}FAKTURA - daňový doklad{else}Rekapitulace objednávky{/if}

Objednávka{if $order.order_no}: {$order.order_no}{/if}

{/block}
{block "invoice-content-left"} {block "invoice-logo"} {$dbcfg.shop_firm_name} {/block}

Datum:


{block "invoice-dates"}

{get_datetime assign="now"} {$date_handle = $order.date_handle|default:$now} Vystavení: {$date_handle|format_date:'d.m.Y'}
{if $order.status} Zd. plnění: {$date_handle|format_date:'d.m.Y'}
Splatnosti: {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} {block "bank"} {if $order.status}

Bankovní účet:


Variabilní symbol: {$order.order_no}
Číslo účtu: {if $dbcfg.bank_account_prefix}{$dbcfg.bank_account_prefix}-{/if}{$dbcfg.bank_account_number}/{$dbcfg.bank_code}
{*IBAN: {$dbcfg.bank_iban}
SWIFT/BIC: {$dbcfg.bank_swift}*}

{/if} {/block} {block "delivery-payment"}

Způsob odběru:


{$order.delivery_type} {$deliveryData = $order->getData('delivery_data')} {$deliveryType = $order->getDeliveryType()} {if $deliveryData && $deliveryType}
{$deliveryType->getDelivery()->printDeliveryInfo() nofilter} {/if}

{/block} {/block}
{block "invoice-content-right"}

Odběratel:


Dodací údaje:


{/block}
{block "notes"} {if $order.note_user != "" && !$order.status}

Poznámky:


Pro obchodníka:

{$order.note_user}

{/if} {/block}
{block "items"} {if $order.status} {/if} {foreach $order.items as $item} {if $order.status} {/if} {/foreach}
Ks PoložkyKódCena za kus bez DPH DPH % DPH s DPH
{$item.pieces} {$item.descr}{if !$item.discount->isZero()}( -{$item.discount|format_price:'printcurrency=no'} %){/if}{if $item.note && $item.product} 
({$item.product->printNote($item.note)}){/if}
{$item.code}{if !$item.code}{$item.ean}{/if}{{$item.value_with_vat_no_rounding}|format_price:"printcurrency=no"} {{$item.total_price.value_without_vat_no_rounding}|format_price:"ceil=no;printcurrency=no"} {$item.vat} {($item.total_price.value_with_vat_no_rounding->sub($item.total_price.value_without_vat_no_rounding))|format_price:"ceil=no;printcurrency=no"} {$item.total_price.value_with_vat_no_rounding|format_price}
{/block}
{block 'pricebox'} {foreach $order.vats as $key => $vat} {/foreach} {if findModule('order_payment')} {$payment = $order->getPayments()} {if $payment > 0} {elseif $payment < 0} {/if} {else} {/if} {*if $body.totalPriceDiscount} {/if*}
  Bez daně Daň Celkem
{if empty($vat.descr)}Daň {$key}%{else}{$vat.descr}{/if} {{$vat.total_price_without_vat}|format_price:"ceil=no"} {$vat.tax.value_vat|format_price:"ceil=no"} {$vat.tax.value_with_vat|format_price:"ceil=no"}
Celkem s DPH {$order.total_price_array.value_with_vat_no_rounding|format_price:"ceil=no"}
Úhrada {$payment|format_price}
Přeplatek {$payment|format_price}
Celkem k úhradě {$order->getRemainingPayment()|format_price}
Cena celkem {$order.total_price_array.value_with_vat_no_rounding|format_price}
Uplatněné slevy {$body.totalPriceDiscount}
{/block}
{block "bottom-right"} {if $order.status}

Faktura slouží jako záruční list!

{/if} {/block} {block "eet"} {if $module.EET} {$eetOrderDispatcher = getSymfonyService('kupshop.eet.dispatcher')} {$eet = $eetOrderDispatcher->getOrderInfo($order)} {if $eet}

{if $eet->getFik()} Tržba byla evidována v běžném režimu
Fik: {$eet->getFik()}
{else} Tržba byla evidována ve zjednodušeném režimu
Pkp: {$eet->getPkp()}
{/if} Bkp: {$eet->getBkp()}
Provozovna: {$eetOrderDispatcher->getPlace()}, Pokladna: {$eetOrderDispatcher->getCashier()}
Datum platby: {$eet->getdateSent()|format_date:'d.m.Y H:i:m'}

{/if} {/if} {/block}
{block "custom-content"}{/block} {/block}
{if $header.show == true} {/if}