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,154 @@
<?php /* Smarty version Smarty3-b7, created on 2014-05-01 09:12:19
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-proMasVend-base.tpl" */ ?>
<?php /*%%SmartyHeaderCode:144098618553625643de9127-03037272%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'7c079a5e4193a8fad829d4ae6692506fdccf5e22' =>
array (
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-proMasVend-base.tpl',
1 => 1381170344,
),
),
'nocache_hash' => '144098618553625643de9127-03037272',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
<thead >
<tr>
<th></th>
<th></th>
<th></th>
<th id="alinear" colspan="1"><b><?php echo urldecode((utf8_decode($_smarty_tpl->getVariable('item')->value['nombre'])));?>
</b></th>
<th></th>
<th></th>
<th ><div style="float:right"><a href="javascript:void(0)" id="showHide<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
" onclick="ShowDesc(<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
)">[+]</a></div></th>
</tr>
</thead>
<tbody id="totales<?php echo $_smarty_tpl->getVariable('item')->value['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>Inv. Actual</b></th>
<th id="alinear"><b>N&uacute;mero de productos vendidos</b></th>
<th id="alinear"><b>Costo</b></th>
<th id="alinear"><b>Precio Venta</b></th>
<th id="alinear"><b>Importe Total</b></th>
</tr>
<?php $_smarty_tpl->tpl_vars['itP'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('item')->value['productos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['itP']->key => $_smarty_tpl->tpl_vars['itP']->value){
$_smarty_tpl->tpl_vars['k1']->value = $_smarty_tpl->tpl_vars['itP']->key;
?>
<tr>
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('itP')->value['codigoBarra'];?>
</td>
<td style="text-align:left;"><?php echo $_smarty_tpl->getVariable('itP')->value['modelo'];?>
</td>
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['disponible'],0,'.',',');?>
</td>
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['vendidos'],0,'.',',');?>
</td>
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['costo'],2,'.',',');?>
</td>
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['precioVenta'],2,'.',',');?>
</td>
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['total'],2,'.',',');?>
</td>
</tr>
<?php }} ?>
<tr>
<td style="text-align:center;"></td>
<td style="text-align:center;"><b>TOTAL</b></td>
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('item')->value['disponible'],0,'.',',');?>
</td>
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('item')->value['vendidos'],0,'.',',');?>
</td>
<td style="text-align:center;"></td>
<td style="text-align:center;"></td>
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['importe'],2,'.',',');?>
</td>
</tr>
</tbody>
<?php }} ?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"){?>
<thead >
<tr>
<th></th>
<th></th>
<th></th>
<th id="alinear" colspan="1"><b><?php if ($_smarty_tpl->getVariable('orden')->value=="mayor"){?>Productos M&aacute;s Vendidos<?php }else{ ?>Productos Menos Vendidos<?php }?></b></th>
<th></th>
<th></th>
<th><div style="float:right"><a href="javascript:void(0)" id="showHide0" onclick="ShowDesc(0)">[+]</a></div></th>
</tr>
</thead>
<tbody id="totales0" 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>Inv. Actual</b></th>
<th id="alinear"><b>N&uacute;mero de productos vendidos</b></th>
<th id="alinear"><b>Costo</b></th>
<th id="alinear"><b>Precio Venta</b></th>
<th id="alinear"><b>Importe Total</b></th>
</tr>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('prodsGral')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
<tr>
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('item')->value['codigoBarra'];?>
</td>
<td style="text-align:left;"><?php echo $_smarty_tpl->getVariable('item')->value['modelo'];?>
</td>
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('item')->value['disponible'],0,'.',',');?>
</td>
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('item')->value['vendidos'],0,'.',',');?>
</td>
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['costo'],2,'.',',');?>
</td>
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['precioVenta'],2,'.',',');?>
</td>
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
</td>
</tr>
<?php }} ?>
<tr>
<td style="text-align:center;"></td>
<td style="text-align:center;"><b>TOTAL</b></td>
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('totDispGral')->value,0,'.',',');?>
</td>
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('totProdsGral')->value,0,'.',',');?>
</td>
<td style="text-align:center;"></td>
<td style="text-align:center;"></td>
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('totImpGral')->value,2,'.',',');?>
</td>
</tr>
</tbody>
<?php }?>