54 lines
2.5 KiB
Smarty
Executable File
54 lines
2.5 KiB
Smarty
Executable File
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
{foreach from=$sucursales item=item key=key}
|
|
{if count($item.proveedores) > 0}
|
|
<thead>
|
|
<tr>
|
|
<th><b>{($item.nombre|utf8_decode)|urldecode}</b></th>
|
|
<th width="90" align="center"><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>
|
|
<td colspan="2">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<th width="80" style="text-align:center"><b>No. Prov.</b></th>
|
|
<th style="text-align:center"><b>Proveedor</b></th>
|
|
<th width="100" style="text-align:center"><b>Inventario Actual</b></th>
|
|
<th width="100" style="text-align:center"><b>Productos Vendidos</b></th>
|
|
<th width="100" style="text-align:center"><b>Total de Venta</b></th>
|
|
</tr>
|
|
{foreach from=$item.proveedores item=it1 key=k1}
|
|
<tr>
|
|
<td style="text-align:center;">{$it1.proveedorId}</td>
|
|
<td style="text-align:left;">{$it1.nombre}</td>
|
|
<td style="text-align:center;">{$it1.totalInv}</td>
|
|
<td style="text-align:center;">{$it1.totalProds}</td>
|
|
<td style="text-align:right;">${$it1.totalVtas|number_format:2:'.':','}</td>
|
|
</tr>
|
|
{/foreach}
|
|
|
|
<tr>
|
|
<td id="alinear"></td>
|
|
<td id="alinear"><b>TOTAL</b></td>
|
|
<td id="alinear"><b>{$item.totalInv|number_format:0:'.':','}</b></td>
|
|
<td id="alinear"><b>{$item.totalProds|number_format:0:'.':','}</b></td>
|
|
<td style="text-align:right"><b>${$item.totalVtas|number_format:2:'.':','}</b></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
{/if}
|
|
{/foreach}
|
|
</table>
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
<tr>
|
|
<th width="83" style="text-align:center"></th>
|
|
<th style="text-align:center"><b>TOTAL GRAL.</b></th>
|
|
<th width="100" style="text-align:center"><b>{$totales.inv|number_format:0:'.':','}</b></th>
|
|
<th width="100" style="text-align:center"><b>{$totales.prods|number_format:0:'.':','}</b></th>
|
|
<th width="105" style="text-align:right"><b>{$totales.vtas|number_format:2:'.':','}</b></th>
|
|
</tr>
|
|
</table> |