71 lines
3.6 KiB
PHP
Executable File
71 lines
3.6 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:22:21
|
|
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-vendedor-base.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:3452783875360f90d2953d6-58460005%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'4413820d54c0384a61f7385b87a1de4416d899dd' =>
|
|
array (
|
|
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-vendedor-base.tpl',
|
|
1 => 1394063494,
|
|
),
|
|
),
|
|
'nocache_hash' => '3452783875360f90d2953d6-58460005',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<table border="1" width="100%">
|
|
<?php $_smarty_tpl->tpl_vars['suc'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['header'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('ventas')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['suc']->key => $_smarty_tpl->tpl_vars['suc']->value){
|
|
$_smarty_tpl->tpl_vars['header']->value = $_smarty_tpl->tpl_vars['suc']->key;
|
|
?>
|
|
<thead>
|
|
<tr style="background:#CCC;text-align:center">
|
|
<th colspan="3"><b><?php echo urldecode($_smarty_tpl->getVariable('suc')->value['nombre']);?>
|
|
</b></th>
|
|
</tr>
|
|
<tr style="background:#E0E5E7;text-align:center">
|
|
<th><b>Nombre del Vendedor</b></th><th><b>Total de venta</b></th><th><b>Comision</b></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $_smarty_tpl->tpl_vars['it1'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('suc')->value['vendedor']; 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:center"><?php echo urldecode((utf8_encode($_smarty_tpl->getVariable('it1')->value['nombre'])));?>
|
|
<?php echo urldecode((utf8_encode($_smarty_tpl->getVariable('it1')->value['apellidos'])));?>
|
|
</td>
|
|
<td style="text-align:right; padding-right:20px">$<?php echo number_format($_smarty_tpl->getVariable('it1')->value['totalventas'],2,'.',',');?>
|
|
</td>
|
|
<td style="text-align:right; padding-right:20px">$<?php echo number_format($_smarty_tpl->getVariable('it1')->value['comisionVendedor'],2,'.',',');?>
|
|
</td>
|
|
</tr>
|
|
<?php }} ?>
|
|
</tbody>
|
|
<tbody>
|
|
<th style="background:#F9F9F9">Venta Total</th>
|
|
<th colspan="2" style="background:#F9F9F9"><b>$<?php echo number_format($_smarty_tpl->getVariable('suc')->value['ventasucursal'],2,'.',',');?>
|
|
</b></th>
|
|
</tbody>
|
|
<?php }} ?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
|
|
<tr height="20px"><td colspan="3"></td></tr>
|
|
<tbody>
|
|
<th style="background:#F9F9F9">Venta General</th>
|
|
<th colspan="2" style="background:#F9F9F9"><b>$<?php echo number_format($_smarty_tpl->getVariable('ventaTotal')->value,2,'.',',');?>
|
|
</b></th>
|
|
</tbody>
|
|
<?php }?>
|
|
|
|
</table>
|