Files
ventas_php/templates/lists/reportes-devcedis.tpl

58 lines
2.2 KiB
Smarty
Executable File

<div class="clear"></div>
<!--THIS IS A WIDE PORTLET-->
<div class="portlet">
<br />
<div class="portlet-content nopadding">
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
<thead>
<tr>
<th width="100" scope="col"><div align="center">No. Dev.</div></th>
<th width="120" scope="col"><div align="center">Fecha</div></th>
<th width="" scope="col"><div align="center">Usuario</div></th>
<th width="100" scope="col"><div align="center">Productos</div></th>
<th width="150" scope="col"><div align="center">Total</div></th>
<th width="100" scope="col"><div align="center">Acciones</div></th>
</tr>
</thead>
<tbody>
{foreach from=$devoluciones item=item key=key}
<tr>
<td align="center">{$item.devCedisId}</td>
<td align="center">{$item.fecha|date_format:"%d-%m-%Y %k:%M:%S"}</td>
<td align="center">{$item.usuario}</td>
<td align="center">{$item.totalCantidad}</td>
<td align="center">${$item.total|number_format:2:'.':','}</td>
<td align="center">
<a href="javascript:void(0)" onclick="ViewProducts({$item.devCedisId})" title="Ver Productos">
<img src="{$WEB_ROOT}/images/icons/details.png" border="0" />
</a>
</td>
</tr>
<tr>
<td colspan="6">
<div id="listProds_{$item.devCedisId}" style="display:none">
{include file="{$DOC_ROOT}/templates/lists/reportes-devcedis-prods.tpl"}
</div>
</td>
</tr>
{foreachelse}
<tr>
<td colspan="6" align="center">Ning&uacute;n registro encontrado.</td>
</tr>
{/foreach}
{if $devoluciones|count}
<tr>
<td align="center"></td>
<td align="center"></td>
<td align="center"><b>TOTALES</b></td>
<td align="center"><b>{$totalProds|number_format:0:'.':','}</b></td>
<td align="center"><b>${$totalTotal|number_format:2:'.':','}</b></td>
<td align="center"></td>
</tr>
{/if}
</tbody>
</table>
</div>
</div>