138 lines
6.7 KiB
PHP
Executable File
138 lines
6.7 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:55:40
|
|
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-pago.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:383483427536100dc31d631-18742931%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'36296e19c53c7ab3668cded64bd2fabc427cb7a9' =>
|
|
array (
|
|
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-pago.tpl',
|
|
1 => 1385483734,
|
|
),
|
|
),
|
|
'nocache_hash' => '383483427536100dc31d631-18742931',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
<?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 style="background:#CCC;text-align:center">
|
|
<th colspan="2" id="alinear"><b><?php echo urldecode($_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>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody style="display:none" id="totales<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
">
|
|
<tr style="background:#E0E5E7;">
|
|
<th style="text-align:left;padding-left:100px;"><b>Tipo de Pago</b></th>
|
|
<th id="alinaer"><b><div style="text-align:center">Número de Productos <br />Vendidos</div></b></th>
|
|
<th style="text-align:right; padding-right:20px"><b><div style="text-align:center">Total de venta</div></b></th>
|
|
</tr>
|
|
<?php $_smarty_tpl->tpl_vars['it1'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('item')->value['metodosPago']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['it1']->key => $_smarty_tpl->tpl_vars['it1']->value){
|
|
$_smarty_tpl->tpl_vars['k1']->value = $_smarty_tpl->tpl_vars['it1']->key;
|
|
?>
|
|
<tr><td style="text-align:left;padding-left:100px;"><?php echo urldecode((utf8_encode($_smarty_tpl->getVariable('it1')->value['nombre'])));?>
|
|
</td>
|
|
<td style="text-align:center"><?php echo $_smarty_tpl->getVariable('it1')->value['totalPrendas'];?>
|
|
</td>
|
|
<td style="text-align:right;padding-right:100px;">$<?php echo number_format($_smarty_tpl->getVariable('it1')->value['total'],2,'.',',');?>
|
|
</td>
|
|
</tr>
|
|
<?php }} else { ?>
|
|
<tr><td colspan="3" align="center">Ninguna registro encontrado.</td></tr>
|
|
<?php } ?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('idMetodoPago')->value>0){?>
|
|
<tr>
|
|
<td style="text-align:left;padding-left:100px;"><b>TOTAL</b></td>
|
|
<td></td>
|
|
<td style="text-align:right;padding-right:100px;"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
|
|
</b></td>
|
|
</tr>
|
|
<?php }else{ ?>
|
|
|
|
<tr>
|
|
<td style="text-align:left;padding-left:100px;"><b>TOTAL</b></td>
|
|
<td></td>
|
|
<td style="text-align:right;padding-right:100px;"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
|
|
</b></td>
|
|
</tr>
|
|
<?php }?>
|
|
|
|
</tbody>
|
|
<?php }} ?>
|
|
</table>
|
|
|
|
<br />
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="3" id="alinear"><b>TOTAL GENERAL</b></th>
|
|
</tr>
|
|
<tr>
|
|
<th style="text-align:left;padding-left:100px;"><b>Tipo de Pago</b></th>
|
|
<th id="alinaer"><b><div style="text-align:center">Número de Productos <br />Vendidos</div></b></th>
|
|
<th id="alinaer"><b><div style="text-align:center">Total de venta</div></b></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $_smarty_tpl->tpl_vars['it2'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['k2'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('formasPago')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['it2']->key => $_smarty_tpl->tpl_vars['it2']->value){
|
|
$_smarty_tpl->tpl_vars['k2']->value = $_smarty_tpl->tpl_vars['it2']->key;
|
|
?>
|
|
<tr>
|
|
<td style="text-align:left;padding-left:100px;"><?php echo urldecode((utf8_encode($_smarty_tpl->getVariable('it2')->value['nombre'])));?>
|
|
</td>
|
|
<td style="text-align:center"><?php echo $_smarty_tpl->getVariable('it2')->value['totalPrendas'];?>
|
|
</td>
|
|
<td style="text-align:right;padding-right:100px;">$<?php echo number_format($_smarty_tpl->getVariable('it2')->value['total'],2,'.',',');?>
|
|
</td>
|
|
</tr>
|
|
<?php }} ?>
|
|
<?php if ($_smarty_tpl->getVariable('idMetodoPago')->value>0){?>
|
|
<tr style="background:#F4F5F6">
|
|
<td style="text-align:left;padding-left:100px;"><b>Total de Ventas</b></td>
|
|
<td style="text-align:center;"><b><?php echo $_smarty_tpl->getVariable('totales')->value['prendas'];?>
|
|
</b></td></td>
|
|
<td style="text-align:right;padding-right:100px;"><b>$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['total'],2,'.',',');?>
|
|
</b></td>
|
|
</tr>
|
|
<?php }else{ ?>
|
|
|
|
<tr style="background:#F4F5F6">
|
|
<td style="text-align:left;padding-left:100px;"><b>Total de Ventas</b></td>
|
|
<td style="text-align:center;"><b><?php echo $_smarty_tpl->getVariable('totales')->value['prendas'];?>
|
|
</b></td></td>
|
|
<td style="text-align:right;padding-right:100px;"><b>$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['total'],2,'.',',');?>
|
|
</b></td>
|
|
</tr>
|
|
<?php }?>
|
|
</tbody>
|
|
</table>
|
|
<?php }?>
|
|
|