Primer commit del sistema avantika sin cambios
This commit is contained in:
@@ -0,0 +1,137 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2016-01-06 13:49:43
|
||||
compiled from "/var/www/html/templates/lists/reportes-pago.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:207038034568d6fd764c825-14663515%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'9c40addc37ef85bc88e7505a198179018db8bb8e' =>
|
||||
array (
|
||||
0 => '/var/www/html/templates/lists/reportes-pago.tpl',
|
||||
1 => 1410130460,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '207038034568d6fd764c825-14663515',
|
||||
'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 }?>
|
||||
|
||||
Reference in New Issue
Block a user