Files
ventas_php/templates_c/baf963b85b9edcf59ac5ffc061363b26c07efd6a.file.agregar-venta.tpl.php

121 lines
4.9 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-07 17:59:17
compiled from "/var/www/html/templates/forms/agregar-venta.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1299689939540ce345ded478-35772511%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'baf963b85b9edcf59ac5ffc061363b26c07efd6a' =>
array (
0 => '/var/www/html/templates/forms/agregar-venta.tpl',
1 => 1410130450,
),
),
'nocache_hash' => '1299689939540ce345ded478-35772511',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
Folio:
<br />
<div class="txtFrm" style="width:100px; text-align:center" id="txtNoFolio"><?php echo $_smarty_tpl->getVariable('info')->value['folio'];?>
</div>
Vendedor:
<br />
<select name="vendedorId" id="vendedorId" class="largeInput">
<option value="">Seleccione</option>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('vendedores')->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;
?>
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['usuarioId'];?>
" <?php if ($_smarty_tpl->getVariable('info')->value['vendedorId']==$_smarty_tpl->getVariable('item')->value['usuarioId']){?>selected<?php }?>><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
<?php echo $_smarty_tpl->getVariable('item')->value['apellidos'];?>
</option>
<?php }} ?>
</select>
<br />
C&oacute;digo de Barra:
<br />
<input type="text" class="largeInput" name="codigoBarra" id="codigoBarra" style="width:330px" autofocus="autofocus" onkeyup="CheckKey(event)" />
Producto:
<br />
<div class="txtFrm" id="txtProducto" style="width:330px">&nbsp;</div>
<div style="float:left">
Cantidad:
<br />
<input type="text" class="largeInput" name="cantidad" id="cantidad" value="1" onkeyup="CheckKeyAdd(event)" />
</div>
<div style="float:right; margin-right:5px">
<br />
<input type="button" style="padding:8px; width:100px" onclick="BuscarProducto()" value="Buscar" />
</div>
<div style="clear:both"></div>
<div style="float:left">
Precio Unitario:
<br />
<div class="txtFrm" id="txtPrecioUni" style="width:100px; text-align:center">0.00</div>
</div>
<div style="float:left; padding-left:10px">
Disponible:
<br />
<div class="txtFrm" id="txtDisp" style="width:100px; text-align:center">0</div>
</div>
<div class="clear"></div>
<div align="center" style="padding-top:10px; padding-bottom:5px">
<input type="hidden" name="tipoProd" id="tipoProd" value="" />
<input type="hidden" name="idProdItem" id="idProdItem" value="" />
<input type="hidden" name="disponible" id="disponible" value="0" />
<input type="button" name="btnAgregar" style="padding:10px; width:300px" onclick="AddProduct()" value="Agregar" />
</div>
<div align="center">
<input type="button" name="btnEspera" value="Venta en Espera" style="padding:6px" onclick="SaveEspera()" />
<input type="button" name="btnDesc" value="Descuentos" style="padding:6px" onclick="AplicarDescuentos()" />
<input type="button" name="btnPromo" id="btnPromo" value="Promociones" style="padding:6px; display:none" onclick="AplicarPromo()" />
</div>
<div style="height:10px"></div>
<hr />
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="right" height="40">Subtotal:</td>
<td width="120" align="right">
<div class="txtFrm" id="txtSubtotal" style="width:100px"><?php if ($_smarty_tpl->getVariable('info')->value['subtotal']){?><?php echo $_smarty_tpl->getVariable('info')->value['subtotal'];?>
<?php }else{ ?>0.00<?php }?></div>
</td>
</tr>
<tr>
<td align="right" headers="40">I.V.A:</td>
<td width="120" align="right">
<div class="txtFrm" id="txtIva" style="width:100px"><?php if ($_smarty_tpl->getVariable('info')->value['iva']){?><?php echo $_smarty_tpl->getVariable('info')->value['iva'];?>
<?php }else{ ?>0.00<?php }?></div>
</td>
</tr>
<tr>
<td align="right" height="40"><span style="font-size:14px"><b>Total:</b></span></td>
<td width="120" align="right">
<div class="txtFrm" id="txtTotal" style="width:100px; font-weight:bold"><?php if ($_smarty_tpl->getVariable('info')->value['total']){?><?php echo $_smarty_tpl->getVariable('info')->value['total'];?>
<?php }else{ ?>0.00<?php }?></div>
</td>
</tr>
</table>
<div align="center">
<div style="float:left; margin-left:20px">
<input type="button" name="btnAgregar" id="btnCobVta" style="padding:10px; width:150px" onclick="CobrarVentaDiv()" value="Finalizar Venta" />
</div>
<div style="float:left; margin-left:10px">
<input type="button" name="btnCancel" style="padding:10px; width:150px" onclick="CancelarVenta()" value="Cancelar Venta" />
</div>
</div>