155 lines
7.6 KiB
PHP
Executable File
155 lines
7.6 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-09-11 11:29:13
|
|
compiled from "/var/www/html/templates/items/reportes-proMasVend-base.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:7461914375411cdd9e46302-62005122%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'04e42e51d920368a743ed56efe978e9b619c3459' =>
|
|
array (
|
|
0 => '/var/www/html/templates/items/reportes-proMasVend-base.tpl',
|
|
1 => 1410130456,
|
|
),
|
|
),
|
|
'nocache_hash' => '7461914375411cdd9e46302-62005122',
|
|
'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ó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ú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á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ó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ú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 }?>
|
|
|