74 lines
3.1 KiB
Smarty
Executable File
74 lines
3.1 KiB
Smarty
Executable File
<div class="clear"></div>
|
|
<!--THIS IS A WIDE PORTLET-->
|
|
<div class="portlet">
|
|
|
|
<div class="portlet-content nopadding">
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
|
|
{if count($evaluarPedidos.items)}
|
|
{foreach from=$evaluarPedidos.items item=item key=key}
|
|
<thead>
|
|
<tr>
|
|
<th width="60" colspan="10"><b>Proveedor: {$item.proveedor}{*} /Pedido Nume: {$item.pedidoId}{*}</b></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th>Descripcion</th>
|
|
<th>Costo</th>
|
|
<th>Compra</th>
|
|
<th>Disponible</th>
|
|
<th>Vendido</th>
|
|
<th>% Ventas</th>
|
|
<th>% Bonificacion Aplicado</th>
|
|
<th>Costo Bonificacion</th>
|
|
<th>Costo Devolución</th>
|
|
<th>Acciones</th>
|
|
</tr>
|
|
{foreach from=$item.productos item=it key=ky}
|
|
<tr>
|
|
<td>{$it.nombreProducto}</td>
|
|
<td>{$it.costo}</td>
|
|
<td>{$it.total}</td>
|
|
<td>{$it.disponible}</td>
|
|
<td>{$it.vendido}</td>
|
|
<td>{$it.porcentajeVendido}%</td>
|
|
<td>
|
|
{if $it.porcentajeAplicado > 0}
|
|
{$it.porcentajeAplicado}%
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
{if $it.costoBonificacion > 0}
|
|
${$it.costoBonificacion}
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
{if $it.costoDevolucion > 0}
|
|
${$it.costoDevolucion}
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
<div align="center">
|
|
{*<a href="{$WEB_ROOT}/pedidos-detalles/id/{$item.pedidoId}" title="Ver Detalles">
|
|
<img src="{$WEB_ROOT}/images/icons/details.png" border="0"/>
|
|
</a>*}
|
|
{if $it.tipo eq "Bonificacion"}
|
|
<img src="{$WEB_ROOT}/images/icons/add.png" class="spanAdd" border="0"
|
|
id="{$it.productoId}##{$it.prodItemId}##{$item.pedidoId}##{$item.proveedorId}##{$it.costo}##{$it.total}##{$it.disponible}##{$it.vendido}##{$it.porcentajeVendido}##{if $it.porcentajeAplicado > 0}{$it.porcentajeAplicado}{else}0{/if}##{if $it.costoBonificacion > 0}{$it.costoBonificacion}{/if}" title="Aplicar Bonificacion"/>
|
|
{/if}
|
|
{if $it.tipo eq "Devolucion"}
|
|
<img src="{$WEB_ROOT}/images/icons/delete.gif" class="spanDelete"
|
|
id="{$it.productoId}##{$it.prodItemId}##{$item.pedidoId}##{$item.proveedorId}##{$it.costo}##{$it.total}##{$it.disponible}##{$it.vendido}##{$it.porcentajeVendido}##{if $it.porcentajeAplicado > 0}{$it.porcentajeAplicado}{else}0{/if}##{if $it.costoDevolucion > 0}{$it.costoDevolucion}{/if}"
|
|
title="Aplicar Devolucion"/>
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
{/foreach}
|
|
{else}
|
|
<tr><td colspan="11" align="center">Ningún registro encontrado.</td>
|
|
{/if}
|
|
|
|
{include file="{$DOC_ROOT}/templates/lists/pages_new.tpl" pages=$evaluarPedidos.pages colspan=11} |