Primer commit del sistema avantika sin cambios
This commit is contained in:
@@ -0,0 +1,123 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-07 17:57:14
|
||||
compiled from "/var/www/html/templates/lists/reportes-venta.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:1490624012540ce2ca6f2b55-02255747%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'55d79c843af4266fe47baca93073b785db6f58a7' =>
|
||||
array (
|
||||
0 => '/var/www/html/templates/lists/reportes-venta.tpl',
|
||||
1 => 1410130461,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '1490624012540ce2ca6f2b55-02255747',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<div style="text-align:center;padding:0px auto;"><b>Periodo <?php echo $_smarty_tpl->getVariable('fechaIni')->value;?>
|
||||
Al <?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ó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ú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ó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ó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ó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ú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 }?>
|
||||
Reference in New Issue
Block a user