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,227 @@
<?php /* Smarty version Smarty3-b7, created on 2014-10-07 16:07:54
compiled from "/var/www/html/templates/items/reportes-proMasVend-base2.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10480513865434562a0c9ad6-59136268%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'e546d78ca9cf6b49c6105fdcbd896d615b7fb4ce' =>
array (
0 => '/var/www/html/templates/items/reportes-proMasVend-base2.tpl',
1 => 1410130456,
),
),
'nocache_hash' => '10480513865434562a0c9ad6-59136268',
'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></th>
<th></th>
<th width="200" id="alinear"><b><?php echo urldecode((utf8_decode($_smarty_tpl->getVariable('item')->value['nombre'])));?>
</b></th>
<th></th>
<th></th>
<th></th>
<th></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>Imagen</b></th>
<th id="alinear"><b>Proveedor</b></th>
<th id="alinear"><b>Departamento</b></th>
<th id="alinear"><b>L&iacute;nea</b></th>
<th id="alinear"><b>C&oacute;digo de Barras</b></th>
<th id="alinear"><b>Producto</b></th>
<th id="alinear"><b>Cant. en Pedido</b></th>
<th id="alinear"><b>Cant. CEDIS</b></th>
<th id="alinear"><b>Inv. Actual</b></th>
<th id="alinear"><b>No. Prods. 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; background-color:#FFFFFF">
<?php if ($_smarty_tpl->getVariable('itP')->value['imagen']!=''){?>
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/productos/<?php echo $_smarty_tpl->getVariable('itP')->value['imagen'];?>
" width="60" height="60" />
<?php }?>
</td>
<td style="text-align:center; background-color:#FFFFFF" bgcolor="#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['proveedor'];?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['depto'];?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['linea'];?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['codigoBarra'];?>
</td>
<td style="text-align:left; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['modelo'];?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['porLlegar'],0,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['cedis'],0,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['disponible'],0,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['vendidos'],0,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['costo'],2,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['precioVenta'],2,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['total'],2,'.',',');?>
</td>
</tr>
<?php }} ?>
<tr>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"><b>TOTAL</b></td>
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['porLlegar'],0,'.',',');?>
</b></td>
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['cedis'],0,'.',',');?>
</b></td>
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['disponible'],0,'.',',');?>
</b></td>
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['vendidos'],0,'.',',');?>
</b></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['importe'],2,'.',',');?>
</b></td>
</tr>
</tbody>
<?php }} ?>
<?php if (count($_smarty_tpl->getVariable('sucursales')->value)>1){?>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th width="200" id="alinear"><b>TOTALES GLOBALES</b></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th ><div style="float:right"><a href="javascript:void(0)" id="showHide1000" onclick="ShowDesc(1000)">[+]</a></div></th>
</tr>
</thead>
<tbody id="totales1000" style="display:none">
<tr style="background:#E0E5E7;text-align:center">
<th id="alinear"><b>Imagen</b></th>
<th id="alinear"><b>Proveedor</b></th>
<th id="alinear"><b>Departamento</b></th>
<th id="alinear"><b>L&iacute;nea</b></th>
<th id="alinear"><b>C&oacute;digo de Barras</b></th>
<th id="alinear"><b>Producto</b></th>
<th id="alinear"><b>Cant. en Pedido</b></th>
<th id="alinear"><b>Cant. CEDIS</b></th>
<th id="alinear"><b>Inv. Actual</b></th>
<th id="alinear"><b>No. Prods. 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('global')->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; background-color:#FFFFFF">
<?php if ($_smarty_tpl->getVariable('itP')->value['imagen']!=''){?>
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/productos/<?php echo $_smarty_tpl->getVariable('itP')->value['imagen'];?>
" width="60" height="60" />
<?php }?>
</td>
<td style="text-align:center; background-color:#FFFFFF" bgcolor="#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['proveedor'];?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['depto'];?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['linea'];?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['codigoBarra'];?>
</td>
<td style="text-align:left; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['modelo'];?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['porLlegar'],0,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['cedis'],0,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['disponible'],0,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['vendidos'],0,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['costo'],2,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['precioVenta'],2,'.',',');?>
</td>
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['total'],2,'.',',');?>
</td>
</tr>
<?php }} ?>
<tr>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"><b>TOTAL</b></td>
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('global')->value['porLlegar'],0,'.',',');?>
</b></td>
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('global')->value['cedis'],0,'.',',');?>
</b></td>
<td style="text-align:center; background-color:#FFFFFF">
<b><?php echo number_format($_smarty_tpl->getVariable('global')->value['disponible'],0,'.',',');?>
</b>
</td>
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('global')->value['vendidos'],0,'.',',');?>
</b></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"></td>
<td style="text-align:center; background-color:#FFFFFF"><b>$<?php echo number_format($_smarty_tpl->getVariable('global')->value['total'],2,'.',',');?>
</b></td>
</tr>
</tbody>
<?php }?>