Files
ventas_php/templates/forms/agregar-venta.tpl

90 lines
3.3 KiB
Smarty
Executable File

Folio:
<br />
<div class="txtFrm" style="width:100px; text-align:center" id="txtNoFolio">{$info.folio}</div>
Vendedor:
<br />
<select name="vendedorId" id="vendedorId" class="largeInput">
<option value="">Seleccione</option>
{foreach from=$vendedores item=item key=key}
<option value="{$item.usuarioId}" {if $info.vendedorId == $item.usuarioId}selected{/if}>{$item.nombre} {$item.apellidos}</option>
{/foreach}
</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">{if $info.subtotal}{$info.subtotal}{else}0.00{/if}</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">{if $info.iva}{$info.iva}{else}0.00{/if}</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">{if $info.total}{$info.total}{else}0.00{/if}</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>