122 lines
5.7 KiB
PHP
Executable File
122 lines
5.7 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 11:56:15
|
|
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-inventario.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:23112317653612b2f0525b3-62578896%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'333e450e5d875b0bea4c0dc1dbbcd001852caaaa' =>
|
|
array (
|
|
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-inventario.tpl',
|
|
1 => 1386609041,
|
|
),
|
|
),
|
|
'nocache_hash' => '23112317653612b2f0525b3-62578896',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if (count($_smarty_tpl->getVariable('sucursales')->value)>0){?>
|
|
<div align="left"><a href="javascript:void(0)" onclick="ShowHideGral()" id="showHideG">[+] TODOS</a></div>
|
|
<?php }?>
|
|
|
|
<?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;
|
|
?>
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
<thead>
|
|
<tr style="background:#CCC;text-align:center">
|
|
<th id="alinear" colspan="5"><b><?php echo urldecode((utf8_decode($_smarty_tpl->getVariable('item')->value['nombre'])));?>
|
|
</b></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>
|
|
<input type="hidden" name="idS[]" value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
" />
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="tblReporte" border="0" class="sortable">
|
|
<tbody id="totales<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
" style="display:none">
|
|
<tr style="background:#E0E5E7;text-align:center">
|
|
<td id="alinear"><b>Proveedor</b></th>
|
|
<th id="alinear"><b>Código Barra</b></th>
|
|
<th id="alinear"><b>Modelo</b></th>
|
|
<th id="alinear" width="70"><b>Costo Unitario</b></th>
|
|
<th id="alinear" width="70"><b>Precio Venta</b></th>
|
|
<th id="alinear" width="60"><b>Disponibles</b></th>
|
|
<th id="alinear" width="80"><b>Total Costo</b></th>
|
|
<th id="alinear" width="80"><b>Total P.V.</b></th>
|
|
</tr>
|
|
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['ky'] = 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['it']->key => $_smarty_tpl->tpl_vars['it']->value){
|
|
$_smarty_tpl->tpl_vars['ky']->value = $_smarty_tpl->tpl_vars['it']->key;
|
|
?>
|
|
<tr>
|
|
<td style="text-align:left"><?php echo $_smarty_tpl->getVariable('it')->value['proveedor'];?>
|
|
</td>
|
|
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('it')->value['codigoBarra'];?>
|
|
</td>
|
|
<td style="text-align:left;"><?php echo $_smarty_tpl->getVariable('it')->value['modelo'];?>
|
|
</td>
|
|
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('it')->value['costo'],2,'.',',');?>
|
|
</td>
|
|
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('it')->value['precioVentaIva'],2,'.',',');?>
|
|
</td>
|
|
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('it')->value['disponible'];?>
|
|
</td>
|
|
<td style="text-align:right;">$<?php echo number_format($_smarty_tpl->getVariable('it')->value['total'],2,'.',',');?>
|
|
</td>
|
|
<td style="text-align:right;">$<?php echo number_format($_smarty_tpl->getVariable('it')->value['totalPV'],2,'.',',');?>
|
|
</td>
|
|
</tr>
|
|
<?php }} ?>
|
|
</tbody>
|
|
</table>
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tbody>
|
|
<tr>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td width="90" style="text-align:center;"><b>TOTAL</b></td>
|
|
<td width="80" style="text-align:center;"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['disponible'],0,'.',',');?>
|
|
</b></td>
|
|
<td width="100" style="text-align:right;"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
|
|
</b></td>
|
|
<td width="100" style="text-align:right;"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['totalPV'],2,'.',',');?>
|
|
</b></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php }} ?>
|
|
|
|
<?php if (count($_smarty_tpl->getVariable('sucursales')->value)>0){?>
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="4"></td>
|
|
<td width="80" style="text-align:center;"><b>TOTAL GRAL.</b></td>
|
|
<td width="60" style="text-align:center;"><b><?php echo number_format($_smarty_tpl->getVariable('totales')->value['disponible'],0,'.',',');?>
|
|
</b></td>
|
|
<td width="85" style="text-align:right;"><b>$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['total'],2,'.',',');?>
|
|
</b></td>
|
|
<td width="85" style="text-align:right;"><b>$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['totalPV'],2,'.',',');?>
|
|
</b></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php }?>
|