Primer commit del sistema avantika sin cambios

This commit is contained in:
2026-01-06 19:42:24 -06:00
commit 3ae4be5957
7127 changed files with 440072 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
{if $sucursales|count > 0}
<div align="left"><a href="javascript:void(0)" onclick="ShowHideGral()" id="showHideG">[+] TODOS</a></div>
{/if}
{foreach from=$sucursales item=item key=key}
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
<thead>
<tr style="background:#CCC;text-align:center">
<th id="alinear" colspan="5"><b>{($item.nombre|utf8_decode)|urldecode}</b></th>
<th>
<div style="float:right">
<a href="javascript:void(0)" id="showHide{$item.sucursalId}" onclick="ShowDesc({$item.sucursalId})">[+]</a>
</div>
<input type="hidden" name="idS[]" value="{$item.sucursalId}" />
</th>
</tr>
</thead>
</table>
<table width="100%" cellpadding="0" cellspacing="0" id="tblReporte" border="0" class="sortable">
<tbody id="totales{$item.sucursalId}" style="display:none">
<tr style="background:#E0E5E7;text-align:center">
<td id="alinear"><b>Proveedor</b></th>
<th id="alinear"><b>C&oacute;digo Barra</b></th>
<th id="alinear"><b>Modelo</b></th>
<th id="alinear" width="70"><b>Costo Unitario</b></th>
<th id="alinear" width="70"><b>Precio Venta</b></th>
<th id="alinear" width="60"><b>Disponibles</b></th>
<th id="alinear" width="80"><b>Total Costo</b></th>
<th id="alinear" width="80"><b>Total P.V.</b></th>
</tr>
{foreach from=$item.productos item=it key=ky}
<tr>
<td style="text-align:left">{$it.proveedor}</td>
<td style="text-align:center;">{$it.codigoBarra}</td>
<td style="text-align:left;">{$it.modelo}</td>
<td style="text-align:center;">${$it.costo|number_format:2:'.':','}</td>
<td style="text-align:center;">${$it.precioVentaIva|number_format:2:'.':','}</td>
<td style="text-align:center;">{$it.disponible}</td>
<td style="text-align:right;">${$it.total|number_format:2:'.':','}</td>
<td style="text-align:right;">${$it.totalPV|number_format:2:'.':','}</td>
</tr>
{/foreach}
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td width="90" style="text-align:center;"><b>TOTAL</b></td>
<td width="80" style="text-align:center;"><b>{$item.disponible|number_format:0:'.':','}</b></td>
<td width="100" style="text-align:right;"><b>${$item.total|number_format:2:'.':','}</b></td>
<td width="100" style="text-align:right;"><b>${$item.totalPV|number_format:2:'.':','}</b></td>
</tr>
</tbody>
</table>
{/foreach}
{if $sucursales|count > 0}
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
<tbody>
<tr>
<td colspan="4"></td>
<td width="80" style="text-align:center;"><b>TOTAL GRAL.</b></td>
<td width="60" style="text-align:center;"><b>{$totales.disponible|number_format:0:'.':','}</b></td>
<td width="85" style="text-align:right;"><b>${$totales.total|number_format:2:'.':','}</b></td>
<td width="85" style="text-align:right;"><b>${$totales.totalPV|number_format:2:'.':','}</b></td>
</tr>
</tbody>
</table>
{/if}