Files
ventas_php/ajax/templates_c/29a98437d29e140d99f64b47ebf12f1deca8c8ed.file.reportes-proMasVend-base2.tpl.php

227 lines
13 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-04-30 12:35:40
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-proMasVend-base2.tpl" */ ?>
<?php /*%%SmartyHeaderCode:19684021775361346c0052c3-33515061%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'29a98437d29e140d99f64b47ebf12f1deca8c8ed' =>
array (
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-proMasVend-base2.tpl',
1 => 1382622989,
),
),
'nocache_hash' => '19684021775361346c0052c3-33515061',
'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 }?>