{if !$body.data.closed}
{if $body.items} {else}
{if !$body.import->supplier_settings} {/if}
{/if}
{/if} {if $body.items}
{'productName'|translate}
{'note'|translate}
{'header_pieces'|translate}{if $body.data.id_index != 'future'} / {'header_store'|translate}{/if}
{'code'|translate} / dod.
EAN
{'priceWithoutVat'|translate} {'header_priceWithVat'|translate} {'header_price'|translate}
{'header_margin'|translate}
{foreach $body.items as $key => $item}

{$item.note}

{$item.quantity} {if $body.data.id_index != 'future' && !is_null($item.web_in_store)}/ {if $item.web_in_store-$item.quantity < 0} {$item.web_in_store-$item.quantity} {else} {$item.web_in_store-$item.quantity} {/if} {/if}

{$item.code} {if $item.code_supplier} / {$item.code_supplier} {/if}

{$item.ean}

{$warning = ""} {if is_null($item.prev_price) || (abs($item.prev_price - $item.price) > $item.prev_price/100)} {$warning = "Pozor, změna nákupní ceny"} {if is_null($item.prev_price)} {$warning = "{$warning} - žádné předchozí naskladnění není"} {else} {$warning = "{$warning} - předchozí cena = {$item.prev_price|format_price:'ceil=no'} / ks, nová cena = {$item.price|format_price:'ceil=no'} / ks ({'withoutTax'|translate:'choice'})"} {/if} {/if} {$item.price_all|format_price} {$item.price_all_vat|format_price} {{$item.price_all / $body.data.multiplier}|round:2} {$body.data.currency_symbol} {if $warning} {/if}

{if !$body.data.closed} {/if}

{$item.rabat|round:0}%

{'withoutTax'|translate:'choice'}
{'withTax'|translate:'choice'}
{$body.data.currency_symbol}
{if !empty($item.id_product)}
{if $dbcfg.prod_prefer_price_vat == "Y" || $dbcfg.prod_prefer_price_vat == "F"}

{$item.web_price_vat|format_price}

{else}

{$item.web_price|format_price}

{/if}
{/if}
{'withoutTax'|translate:'choice'}
{'withTax'|translate:'choice'}
{$body.data.currency_symbol}
{if !empty($item.id_product)}

({$item.rabat|round:1}%)

{/if}
{if $module.STOCK_IN__WEIGHTED_PURCHASE_PRICE}
{'withTax'|translate:'choice'}
{'withoutTax'|translate:'choice'}
{$body.data.currency_symbol}
{'withTax'|translate:'choice'}
{'withoutTax'|translate:'choice'}
{$body.data.currency_symbol}
{/if}
{if $item@iteration is div by 100} {flush nocache} {/if} {/foreach}
{/if}