Files
ventas_php/ajax/templates_c/66dc50054839c8e8fc28b9af87cba292aade8d8c.file.reportes-venta.tpl.php

123 lines
5.4 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-04-30 07:47:28
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-venta.tpl" */ ?>
<?php /*%%SmartyHeaderCode:16447022665360f0e0506f30-15140242%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'66dc50054839c8e8fc28b9af87cba292aade8d8c' =>
array (
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-venta.tpl',
1 => 1381166826,
),
),
'nocache_hash' => '16447022665360f0e0506f30-15140242',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div style="text-align:center;padding:0px auto;"><b>Periodo &nbsp;<?php echo $_smarty_tpl->getVariable('fechaIni')->value;?>
&nbsp; Al &nbsp;<?php echo $_smarty_tpl->getVariable('fechaFin')->value;?>
</b></div>
<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 id="alinear" colspan="5"><b><?php echo urldecode((utf8_decode($_smarty_tpl->getVariable('item')->value['nombre'])));?>
</b></th>
</tr>
<tr>
<th width="20%">
<div style="text-align:center"><b>$ Venta Total</b></div>
</th>
<th width="20%">
<div style="text-align:center"><b>$ Devoluci&oacute;n Total</b></div>
</th>
<th width="20%">
<div style="text-align:center"><b>$ Costo Total</b></div>
</th>
<th width="20%">
<div style="text-align:center"><b>$ Utilidad</b></div>
</th>
<th width="20%">
<div style="text-align:center"><b>N&uacute;mero de ventas realizadas</b></div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div style="text-align:center">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['totalVenta'],2,'.',',');?>
</div>
</td>
<td>
<div style="text-align:center">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['totalDev'],2,'.',',');?>
</div>
</td>
<td>
<div style="text-align:center">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['totalCosto'],2,'.',',');?>
</div>
</td>
<td>
<div style="text-align:center">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['totalUtilidad'],2,'.',',');?>
</div>
</td>
<td>
<div style="text-align:center"><?php echo number_format($_smarty_tpl->getVariable('item')->value['totalNoVtas'],2,'.',',');?>
</div>
</td>
</tr>
<tr>
<td>Comisi&oacute;n Gerente <?php echo $_smarty_tpl->getVariable('item')->value['nomGte'];?>
</td>
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['comisionGte'],2,'.',',');?>
</td>
<td colspan="3"></td>
</tr>
<tr>
<td>Comisi&oacute;n SubGerente <?php echo $_smarty_tpl->getVariable('item')->value['nomSubGte'];?>
</td>
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['comisionSubGte'],0,'.',',');?>
</td>
<td colspan="3"></td>
</tr>
</tbody>
<?php }} ?>
</table>
<?php if (($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen")&&$_smarty_tpl->getVariable('idSucursal')->value==''){?>
<br /><br /><br />
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
<thead>
<tr style="text-align:center" >
<th id="alinear" colspan="5"><b>TOTALES GENERAL</b></th>
</tr>
<tr>
<th width="20%"><div style="text-align:center"><b>$ Venta Total</b></div></th>
<th width="20%"><div style="text-align:center"><b>$ Devoluci&oacute;n Total</b></div></th>
<th width="20%"><div style="text-align:center"><b>$ Costo Total</b></div></th>
<th width="20%"><div style="text-align:center"><b>$ Utilidad</b></div></th>
<th width="20%"><div style="text-align:center"><b>N&uacute;mero de ventas realizadas</b></div></th>
</tr>
</thead>
<tbody>
<td><div style="text-align:center">$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['totalVenta'],2,'.',',');?>
</div></td>
<td><div style="text-align:center">$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['totalDev'],2,'.',',');?>
</div></td>
<td><div style="text-align:center">$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['totalCosto'],2,'.',',');?>
</div></td>
<td><div style="text-align:center">$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['totalUtilidad'],2,'.',',');?>
</div></td>
<td><div style="text-align:center"><?php echo number_format($_smarty_tpl->getVariable('totales')->value['totalNoVtas'],0,'.',',');?>
</div></td>
</tbody>
</table>
<?php }?>