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,203 @@
<table width="{$width}" cellpadding="0" cellspacing="0" id="tblProdProv" border="0" bgcolor="#FFFFFF" class="sortable">
<thead>
<tr>
<th width="60"></th>
<th width="60"></th>
<th width="100"></th>
<th width="100"></th>
<th width="200"></th>
<th width="60"></th>
{foreach from=$periodo item=mes key=kP}
<th width="300" colspan="5"><b>{$mes}</b></th>
{/foreach}
<th width="100"></th>
<th width="80"></th>
<th width="80"></th>
<th width="100"></th>
<th width="80"></th>
<th width="80"></th>
<th width="100"></th>
</tr>
<tr>
<th>Depto.</th>
<th>L&iacute;nea</th>
<th>Clave</th>
<th><b>C&oacute;digo</b></th>
<th><b>Producto</b></th>
<th><b>No. Prov.</b></th>
{foreach from=$periodo item=mes key=kP}
<th><b>Inicial</b></th>
<th><b>Entrada</b></th>
<th><b>Salida</b></th>
<th><b>Ajuste Entrada</b></th>
<th><b>Ajuste Salida</b></th>
{/foreach}
<th><b>Ultima Compra</b></th>
<th><b>Total Piezas</b></th>
<th><b>Costo</b></th>
<th><b>Importe Total de Inv.</b></th>
<th><b>Total Ventas</b></th>
<th><b>Precio Venta</b></th>
<th><b>Importe Total Ventas</b></th>
</tr>
</thead>
{foreach from=$suc.categorias item=item key=key}
<tr>
<td align="center">{$item.prodCatId}</td>
<td align="center">{$item.prodSubcatId}</td>
<td align="left" colspan="2">{$item.nombre}</td>
<td align="left"></td>
<td align="center"></td>
{foreach from=$periodo item=p key=kP}
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
{/foreach}
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="right"></td>
</tr>
{foreach from=$suc.subcategorias[{$item.prodCatId}] item=iS key=kS}
<tr>
<td align="center">{$item.prodCatId}</td>
<td align="center">{$iS.prodSubcatId}</td>
<td align="left" colspan="2">{$iS.nombre}</td>
<td align="left"></td>
<td align="center"></td>
{foreach from=$periodo item=p key=kP}
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
{/foreach}
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="right"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>
{foreach from=$suc.productos[{$item.prodCatId}][{$iS.prodSubcatId}] item=iP key=kP}
<tr>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center">{$iP.codigoBarra}</td>
<td align="left">{$iP.modelo}</td>
<td align="center">{$iP.proveedorId}</td>
{foreach from=$periodo item=p key=kP}
<td align="center">{$iP.iniciales.$kP|number_format:0:'.':''}</td>
<td align="center">{$iP.entradas.$kP|number_format:0:'.':''}</td>
<td align="center">{$iP.salidas.$kP|number_format:0:'.':''}</td>
<td align="center">{$iP.entradasA.$kP|number_format:0:'.':''}</td>
<td align="center">{$iP.salidasA.$kP|number_format:0:'.':''}</td>
{/foreach}
<td align="center">{$iP.fecha|date_format:"%d-%m-%Y"}</td>
<td align="center">{$iP.totalPzas|number_format:0:'.':''}</td>
<td align="center">${$iP.costo|number_format:2:'.':''}</td>
<td align="right">${$iP.importe|number_format:2:'.':''}&nbsp;</td>
<td align="center">{$iP.totalVtas|number_format:0:'.':''}</td>
<td align="center">{$iP.precioVta|number_format:2:'.':''}</td>
<td align="right">{$iP.importeVtas|number_format:2:'.':''}&nbsp;</td>
</tr>
{foreachelse}
<tr><td colspan="{$colspan}" align="center">Ning&uacute;n producto encontrado.</td></tr>
{/foreach}
<tr>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"><b>TOTAL LINEA</b></td>
<td align="center"></td>
{foreach from=$periodo item=p key=kP}
<td align="center">{$suc['totSubs'][$iS.prodSubcatId][$kP]['inicial']|number_format:0:'.':''}</td>
<td align="center">{$suc['totSubs'][$iS.prodSubcatId][$kP]['entradas']|number_format:0:'.':''}</td>
<td align="center">{$suc['totSubs'][$iS.prodSubcatId][$kP]['salidas']|number_format:0:'.':''}</td>
<td align="center">{$suc['totSubs'][$iS.prodSubcatId][$kP]['entradasA']|number_format:0:'.':''}</td>
<td align="center">{$suc['totSubs'][$iS.prodSubcatId][$kP]['salidasA']|number_format:0:'.':''}</td>
{/foreach}
<td align="center"></td>
<td align="center">{$suc['totSubs'][$iS.prodSubcatId]['totalPzas']|number_format:0:'.':''}</td>
<td align="center"></td>
<td align="right">${$suc['totSubs'][$iS.prodSubcatId]['importe']|number_format:2:'.':','}&nbsp;</td>
<td align="center">{$suc['totSubs'][$iS.prodSubcatId]['totalVtas']|number_format:0:'.':''}</td>
<td align="center"></td>
<td align="right">${$suc['totSubs'][$iS.prodSubcatId]['importeVtas']|number_format:2:'.':','}&nbsp;</td>
</tr>
{/foreach}
<tr>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"><b>TOTAL DEPTO.</b></td>
<td align="center"></td>
{foreach from=$periodo item=p key=kP}
<td align="center">{$suc['totCats'][$item.prodCatId][$kP]['inicial']|number_format:0:'.':''}</td>
<td align="center">{$suc['totCats'][$item.prodCatId][$kP]['entradas']|number_format:0:'.':''}</td>
<td align="center">{$suc['totCats'][$item.prodCatId][$kP]['salidas']|number_format:0:'.':''}</td>
<td align="center">{$suc['totCats'][$item.prodCatId][$kP]['entradasA']|number_format:0:'.':''}</td>
<td align="center">{$suc['totCats'][$item.prodCatId][$kP]['salidasA']|number_format:0:'.':''}</td>
{/foreach}
<td align="center"></td>
<td align="center">{$suc['totCats'][$item.prodCatId]['totalPzas']|number_format:0:'.':''}</td>
<td align="center"></td>
<td align="right">${$suc['totCats'][$item.prodCatId]['importe']|number_format:2:'.':','}&nbsp;</td>
<td align="center">{$suc['totCats'][$item.prodCatId]['totalVtas']|number_format:0:'.':''}</td>
<td align="center"></td>
<td align="right">${$suc['totCats'][$item.prodCatId]['importeVtas']|number_format:2:'.':','}&nbsp;</td>
</tr>
{/foreach}
</tbody>
</table>
{if $suc.productos|count > 0}
<table width="{$width}" cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF">
<tr>
<th width="60"></th>
<th width="60"></th>
<th width="100"></th>
<th width="100"></th>
<th width="200"><b>TOTALES</b></th>
<th width="60"></th>
{foreach from=$periodo item=mes key=kP}
<td width="60" align="center"><b>{$suc.totIniciales.$kP|number_format:0:'.':','}</b></td>
<td width="60" align="center"><b>{$suc.totEntradas.$kP|number_format:0:'.':','}</b></td>
<td width="60" align="center"><b>{$suc.totSalidas.$kP|number_format:0:'.':','}</b></td>
<td width="60" align="center"><b>{$suc.totEntradasA.$kP|number_format:0:'.':','}</b></td>
<td width="60" align="center"><b>{$suc.totSalidasA.$kP|number_format:0:'.':','}</b></td>
{/foreach}
<th width="100"></th>
<th width="80"><b>{$suc.totPzas|number_format:0:'.':','}</b></th>
<th width="80"></th>
<th width="100"><b>${$suc.totImporte|number_format:2:'.':','}</b></th>
<th width="80"><b>{$suc.totVtas|number_format:0:'.':','}</b></th>
<th width="80"></th>
<th width="100"><b>${$suc.totImporteVtas|number_format:2:'.':','}</b></th>
</tr>
</tbody>
</table>
{/if}