{extends "../windowFrame.tpl"} {block body_class}class="panel_frame window-orders-items"{/block} {block content}
{block 'orders-items-variables'} {$closed = $body.order->isClosed()} {$storno = $body.order.status_storno == 1} {$pricePreferred = '_vat'} {$labelPricePreferred = 'withTax'|translate:'choice'} {if ($dbcfg->prod_prefer_price_vat == 'N')} {$pricePreferred = ''} {$labelPricePreferred = 'withoutTax'|translate:'choice'} {/if} {/block}
{if !$storno and !$closed and !$warehouse_closed} {/if}
{if $body.price_level} {$body.price_level.name} {/if}
{if $body.pv} {/if}
{if !$storno and !$closed and !$warehouse_closed} {/if}
{block "order-items"} {foreach from=$body.pv item=item key=key name=pv}
{if empty($item.id_product) || $item.in_store + $item.piecesOrdered >= 0} {$class="row-green"} {else} {if $item.in_store + $item.piecesOrdered + $item.piecesInSuppliers >= 0} {$class="row-orange"} {else} {$class="row-red"} {/if} {/if}
{block 'item-note'} {if $item.note}
{$item.note}
{/if} {/block}
{'piecesUnit'|translate:'orders'}
{'withoutTax'|translate:'choice'}
{'withTax'|translate:'choice'}
%
{'withoutTax'|translate:'choice'}
{'withTax'|translate:'choice'}
%
{if $item.custom_data.discounts} {$itemInfo = $body.order->getItemInfo($item)}

{$itemInfo.discounts nofilter}
{$itemInfo.discounts_admin nofilter}

{/if}
{if $module.PRODUCTS__PRICE_BUY && findRight('PROD_PRICEBUY')}
{'withoutTax'|translate:'choice'}
{/if}
{block "spec-row"} {/block}
{/foreach} {/block}
{if !$storno and !$closed and !$warehouse_closed} {/if} {if $body.oi} {/if}
{block 'discount-items'} {foreach from=$body.oi item=item key=key name=pv}
{'piecesUnit'|translate:'orders'}
{'withoutTax'|translate:'choice'}
{'withTax'|translate:'choice'}
%
{'withoutTax'|translate:'choice'}
{'withTax'|translate:'choice'}
%
{if $module.PRODUCTS__PRICE_BUY && findRight('PROD_PRICEBUY')}
{'withoutTax'|translate:'choice'}
{/if} {block "discounts-spec-row"} {/block}
{/foreach} {/block}
{if $storno}
{'errorCanceledCantEdit'|translate:'orders'}
{elseif $closed}
{'errorOrderClosed'|translate:'orders'}
{elseif $warehouse_closed}
Položky objednávky již nelze upravovat, protože objednávka už prošla výstupní kontrolou.
{/if}
{if !$storno and !$closed and !$warehouse_closed}
{/if}
{'itemsTotalPrice'|translate:'orders'}: {$body.total_price_vat|format_price:"ceil=no;decimal=dynamic"} ({'withTax'|translate:'choice'})
{$body.total_price->value(2)|format_price:"ceil=no;decimal=dynamic"} ({'withoutTax'|translate:'choice'})
{/block}