Files
ventas_php/templates_c/d3f49ec89e05db8b328b8e402bc74b1f9cbe62b7.file.ventas-base.tpl.php

77 lines
3.5 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-10-01 12:28:23
compiled from "/var/www/html/templates/items/ventas-base.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1560228326542c39b73fe501-67691134%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'd3f49ec89e05db8b328b8e402bc74b1f9cbe62b7' =>
array (
0 => '/var/www/html/templates/items/ventas-base.tpl',
1 => 1410130456,
),
),
'nocache_hash' => '1560228326542c39b73fe501-67691134',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_smarty_tpl->getVariable('item')->value['ventaIdAnt']>0){?>
<?php $_smarty_tpl->assign("vClass","txtGreen",null,null);?>
<?php }?>
<tr>
<td align="center">
</td>
<td align="center" class="<?php echo $_smarty_tpl->getVariable('vClass')->value;?>
"><div align="center"><?php echo $_smarty_tpl->getVariable('item')->value['folio'];?>
</div></td>
<td align="center" class="<?php echo $_smarty_tpl->getVariable('vClass')->value;?>
"><div align="center"><?php echo $_smarty_tpl->getVariable('item')->value['sucursal'];?>
</div></td>
<td align="center" class="<?php echo $_smarty_tpl->getVariable('vClass')->value;?>
"><div align="center"><?php echo $_smarty_tpl->getVariable('item')->value['usuario'];?>
</div></td>
<td align="center" class="<?php echo $_smarty_tpl->getVariable('vClass')->value;?>
"><div align="center"><?php echo $_smarty_tpl->getVariable('item')->value['fecha'];?>
</div></td>
<td align="center" class="<?php echo $_smarty_tpl->getVariable('vClass')->value;?>
"><div align="center"><?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,".",",");?>
</div></td>
<td align="center" class="<?php echo $_smarty_tpl->getVariable('vClass')->value;?>
"><div align="center">
<?php if ($_smarty_tpl->getVariable('item')->value['cancelDev']==1&&$_smarty_tpl->getVariable('item')->value['status']=="Cancelado"){?>
Cancelado por Devoluci&oacute;n
<?php }else{ ?>
<?php echo $_smarty_tpl->getVariable('item')->value['status'];?>
<?php }?>
</div></td>
<td align="center"><div align="center">
<a href="javascript:void(0)" onclick="PrintTicket(<?php echo $_smarty_tpl->getVariable('item')->value['ventaId'];?>
)" title="Ver Ticket">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/ticket.png" border="0"/>
</a>
<?php if ($_smarty_tpl->getVariable('item')->value['status']=="Activo"&&$_smarty_tpl->getVariable('Usr')->value['type']=="admin"){?>
<a href="javascript:void(0)" onclick="CancelVentaCentral(<?php echo $_smarty_tpl->getVariable('item')->value['ventaId'];?>
)" title="Cancelar Venta">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/delete.gif" border="0"/>
</a>
<?php }?>
<?php if ($_smarty_tpl->getVariable('item')->value['status']=="Activo"&&($_smarty_tpl->getVariable('Usr')->value['type']=="facturacion"||$_smarty_tpl->getVariable('Usr')->value['type']=="gerente")){?>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/facturacion-nueva/ventaId/<?php echo $_smarty_tpl->getVariable('item')->value['ventaId'];?>
" title="Facturar">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/fe.png" width="16px" border="0" />
</a>
<?php }?>
</div>
</td>
</tr>