Primer commit del sistema avantika sin cambios
This commit is contained in:
@@ -0,0 +1,184 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-27 19:03:04
|
||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-prod-prov-totales.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:37156502853ae0638bd7082-58943215%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'92f9d6447e919b793c00597a00c67024e23e4ed9' =>
|
||||
array (
|
||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-prod-prov-totales.tpl',
|
||||
1 => 1403913705,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '37156502853ae0638bd7082-58943215',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<?php if (!is_callable('smarty_modifier_date_format')) include '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/libs/plugins/modifier.date_format.php';
|
||||
?><table width="<?php echo $_smarty_tpl->getVariable('width')->value;?>
|
||||
" 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>
|
||||
<?php $_smarty_tpl->tpl_vars['mes'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['mes']->key => $_smarty_tpl->tpl_vars['mes']->value){
|
||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['mes']->key;
|
||||
?>
|
||||
<th width="400" colspan="6"><b><?php echo $_smarty_tpl->getVariable('mes')->value;?>
|
||||
</b></th>
|
||||
<?php }} ?>
|
||||
<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ínea</th>
|
||||
<th>Clave</th>
|
||||
<th><b>Código</b></th>
|
||||
<th><b>Producto</b></th>
|
||||
<th><b>No. Prov.</b></th>
|
||||
<?php $_smarty_tpl->tpl_vars['mes'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['mes']->key => $_smarty_tpl->tpl_vars['mes']->value){
|
||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['mes']->key;
|
||||
?>
|
||||
<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>
|
||||
<th><b>Bloqueados</b></th>
|
||||
<?php }} ?>
|
||||
<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>
|
||||
|
||||
<?php $_smarty_tpl->tpl_vars['iP'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('products')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['iP']->key => $_smarty_tpl->tpl_vars['iP']->value){
|
||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['iP']->key;
|
||||
?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td align="center"><?php echo $_smarty_tpl->getVariable('iP')->value['codigoBarra'];?>
|
||||
</td>
|
||||
<td align="left"><?php echo $_smarty_tpl->getVariable('iP')->value['modelo'];?>
|
||||
</td>
|
||||
<td align="center"><?php echo $_smarty_tpl->getVariable('iP')->value['proveedorId'];?>
|
||||
</td>
|
||||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
|
||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['p']->key;
|
||||
?>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['iniciales'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['entradas'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['salidas'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['entradasA'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['salidasA'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['bloqueados'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<?php }} ?>
|
||||
<td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('iP')->value['fecha'],"%d-%m-%Y");?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['totalPzas'],0,'.','');?>
|
||||
</td>
|
||||
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('iP')->value['costo'],2,'.','');?>
|
||||
</td>
|
||||
<td align="right">$<?php echo number_format($_smarty_tpl->getVariable('iP')->value['importe'],2,'.','');?>
|
||||
</td>
|
||||
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['totalVtas'],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['precioVta'],2,'.','');?>
|
||||
</td>
|
||||
<td align="right"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['importeVtas'],2,'.','');?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }} else { ?>
|
||||
<tr><td colspan="<?php echo $_smarty_tpl->getVariable('colspan')->value;?>
|
||||
" align="center">Ningún producto encontrado.</td></tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (count($_smarty_tpl->getVariable('products')->value)>0){?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td align="center"></td>
|
||||
<td align="left"><b>TOTALES</b></td>
|
||||
<td align="center"></td>
|
||||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
|
||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['p']->key;
|
||||
?>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['iniciales'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['entradas'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['salidas'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['entradasA'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['salidasA'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['bloqueados'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
||||
</td>
|
||||
<?php }} ?>
|
||||
<td align="center"></td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['totalPzas'],0,'.','');?>
|
||||
</td>
|
||||
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['costo'],2,'.','');?>
|
||||
</td>
|
||||
<td align="right">$<?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['importe'],2,'.','');?>
|
||||
</td>
|
||||
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['totalVtas'],0,'.','');?>
|
||||
</td>
|
||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['precioVta'],2,'.','');?>
|
||||
</td>
|
||||
<td align="right"><?php echo number_format($_smarty_tpl->getVariable('prodTotales')->value['importeVtas'],2,'.','');?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user