47 lines
1.9 KiB
Smarty
Executable File
47 lines
1.9 KiB
Smarty
Executable File
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
|
|
{foreach from=$proveedores item=item key=key}
|
|
<tr><th colspan="7" align="left">{$provInfo.$key.nombreProveedor}</th></tr>
|
|
<tr>
|
|
<th>PedidoId</th>
|
|
<th>Sucursal</th>
|
|
<th>Descripcion</th>
|
|
<th>Piezas</th>
|
|
<th>Total</th>
|
|
<th>Fecha</th>
|
|
<th>Accion</th>
|
|
</tr>
|
|
{foreach from=$envios.items item=item2 key=key2}
|
|
{if $item.proveedorId == $item2.proveedorId}
|
|
<tr>
|
|
<td>{$item2.pedidoId}</td>
|
|
<td>{$item2.nombreSucursal}</td>
|
|
<td>{$item2.nombreProducto}</td>
|
|
<td>{$item2.cantidadProd}</td>
|
|
<td>${$item2.total}</td>
|
|
<td>{$item2.fecha}</td>
|
|
<td>
|
|
{if $item2.status == "Pendiente" && $Usr.type == "gerente"}
|
|
<img src="{$WEB_ROOT}/images/icons/ok.png" style="cursor:pointer" class="spanEnviar" border="0"
|
|
id="{$item2.envioDevolucionId}" title="Producto Enviado"/>
|
|
{/if}
|
|
{if $item2.status == "Enviado" && $Usr.type == "almacen"}
|
|
<img src="{$WEB_ROOT}/images/icons/ok.png" style="cursor:pointer" class="spanAdd" border="0"
|
|
id="{$item2.envioDevolucionId}" title="Producto Recibido"/>
|
|
{/if}
|
|
{if $item2.status == "Pendiente" && $Usr.type == "almacen"}
|
|
Pendiente de Envio a Cedis
|
|
{/if}
|
|
{if $item2.status == "Enviado" && $Usr.type == "gerente"}
|
|
Enviado el: {$item2.fechaRecibido}
|
|
{/if}
|
|
{if $item2.status == "Autorizado"}
|
|
Recibido el: {$item2.fechaRecibido}
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
{/foreach}
|
|
{foreachelse}
|
|
<tr><td align="center">No se encontraron resultados</td></tr>
|
|
{/foreach}
|
|
</table> |