Files
ventas_php/templates/lists/reportes-prods-transito.tpl

60 lines
2.3 KiB
Smarty
Executable File

<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
{foreach from=$sucursales item=item key=key}
<thead>
<tr>
<th></th>
<th></th>
<th id="alinear" colspan="1"><b>{($item.nombre|utf8_decode)|urldecode}</b></th>
<th></th>
<th></th>
<th ><div style="float:right"><a href="javascript:void(0)" id="showHide{$item.sucursalId}" onclick="ShowDesc({$item.sucursalId})">[+]</a></div></th>
</tr>
</thead>
<tbody id="totales{$item.sucursalId}" style="display:none">
<tr style="background:#E0E5E7;text-align:center">
<th id="alinear"><b>C&oacute;digo de Barras</b></th>
<th id="alinear"><b>Producto</b></th>
<th id="alinear"><b>Cantidad</b></th>
<th id="alinear"><b>Costo</b></th>
<th id="alinear"><b>Precio Venta</b></th>
<th id="alinear"><b>Total Precio Venta</b></th>
</tr>
{foreach from=$item.productos item=itP key=k1}
<tr>
<td style="text-align:center;">{$itP.codigoBarra}</td>
<td style="text-align:left;">{$itP.modelo}</td>
<td style="text-align:center;">{$itP.cantidad}</td>
<td style="text-align:center;">${$itP.costo|number_format:2:'.':','}</td>
<td style="text-align:center;">${$itP.precioVenta|number_format:2:'.':','}</td>
<td style="text-align:center;">${$itP.total|number_format:2:'.':','}</td>
</tr>
{/foreach}
<tr>
<td style="text-align:center;"></td>
<td style="text-align:center;"><b>TOTAL</b></td>
<td style="text-align:center;"><b>{$item.cantidad|number_format:0:'.':','}</b></td>
<td style="text-align:center;"></td>
<td style="text-align:center;"></td>
<td style="text-align:center;"><b>${$item.total|number_format:2:'.':','}</b></td>
</tr>
</tbody>
{foreachelse}
<tbody>
<tr><td align="center">Ningun registro encontrado.</td></tr>
</tbody>
{/foreach}
{if $sucursales|count > 1}
<tbody>
<tr>
<td style="text-align:center;"></td>
<td style="text-align:center;"><b>TOTAL GENERAL</b></td>
<td style="text-align:center;"><b>{$cantGral|number_format:0:'.':','}</b></td>
<td style="text-align:center;"></td>
<td style="text-align:center;"></td>
<td style="text-align:center;"><b>${$totalGral|number_format:2:'.':','}</b></td>
</tr>
</tbody>
{/if}
</table>