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

178 lines
7.5 KiB
Smarty
Executable File

<div id="divForm">
<form id="frmAgregarPedido" name="frmAgregarPedido" method="post">
<input type="hidden" id="type" name="type" value="savePedido" />
<input type="hidden" id="key" name="key" value="" />
<fieldset>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="120" height="40">* Proveedor:</td>
<td>
<input name="proveedor" id="proveedor" type="text" class="largeInput" style="width:290px" onkeyup="SuggestProveedor()"/>
<input type="hidden" name="proveedorId" id="proveedorId" value="" />
<div style="position:relative">
<div class="suggestGral" style="display:none;" id="sugProvDiv"></div>
</div>
</td>
<td width="10"></td>
<td width="130">No. de Pedido</td>
<td><div class="txtFrm">{$info.noPedido}</div></td>
</tr>
<tr>
<td width="120" height="40">Fecha del Pedido:</td>
<td>
<div class="txtFrm">{$info.fechaPedido}</div>
<input type="hidden" name="fechaPedido" id="fechaPedido" value="{$info.fechaPedido}" />
</td>
<td width="10"></td>
<td width="130">* Fecha de Entrega</td>
<td><div style="height:10px"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="135">Del
<input name="fechaEntrega" id="fechaEntrega" type="text" class="largeInput" style="width:100px" value="" readonly="readonly" />
</td>
<td>
<a href="javascript:void(0)" onclick="NewCal('fechaEntrega','ddmmyyyy')">
<img src="{$WEB_ROOT}/images/icons/calendar.gif" />
</a>
</td>
<td width="138">&nbsp;&nbsp;Al
<input name="fechaEntregaF" id="fechaEntregaF" type="text" class="largeInput" style="width:100px" value="" readonly="readonly" />
</td>
<td>
<a href="javascript:void(0)" onclick="NewCal('fechaEntregaF','ddmmyyyy')">
<img src="{$WEB_ROOT}/images/icons/calendar.gif" /></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="120" height="40">* M&eacute;todo de Compra:</td>
<td>{include file="{$DOC_ROOT}/templates/lists/enumMetodoCompra.tpl"}</td>
<td width="10"></td>
<td width="130">Resurtido:</td>
<td><input type="checkbox" name="resurtido" id="resurtido" value="1" onclick="ShowDistribucion()" /></td>
</tr>
<tr>
<td height="40">% Publicidad:</td>
<td><input name="porcPub" id="porcPub" type="text" class="largeInput" style="width:290px" value="" /></td>
<td width="10"></td>
<td width="130">% Flete:</td>
<td><input name="porcFlete" id="porcFlete" type="text" class="largeInput" style="width:290px" value="" /></td>
</tr>
<tr>
<td height="40">% Desarrollo:</td>
<td><input name="porcDes" id="porcDes" type="text" class="largeInput" style="width:290px" value="" /></td>
<td width="10"></td>
<td width="130">% Especial:</td>
<td><input name="porcEsp" id="porcEsp" type="text" class="largeInput" style="width:290px" value="" /></td>
</tr>
<tr>
<td colspan="5" align="center" height="50"><b>.:: AGREGAR PRODUCTOS ::.</b></td>
</tr>
{*}
<tr>
<td width="120" align="left" height="40">* Departamento:</td>
<td>{include file="{$DOC_ROOT}/templates/lists/enumProdCat.tpl"}</td>
<td width="10"></td>
<td width="130" align="left">* L&iacute;nea:</td>
<td><div id="enumLineas">{include file="{$DOC_ROOT}/templates/lists/enumProdSubcatPed.tpl"}</div></td>
</tr>
{*}
<tr>
<td width="120" height="40">* C&oacute;digo Barra:</td>
<td>
<input name="modelo" id="modelo" type="text" class="largeInput" style="width:290px" onkeyup="CheckKey(event)"/>
<input type="hidden" name="productoId" id="productoId" value="" />
<input type="hidden" name="prodCatId" id="prodCatId" value="" />
<input type="hidden" name="prodSubcatId" id="prodSubcatId" value="" />
<div style="position:relative">
<div class="suggestGral" style="display:none;" id="sugProdDiv"></div>
</div>
</td>
<td width="10"></td>
<td width="130">Descripci&oacute;n:</td>
<td><div id="enumAtributos"></div></td>
</tr>
<tr>
<td colspan="5" align="center">&nbsp;</td>
</tr>
<tr>
<td colspan="5" align="center">
<a href="javascript:void(0)" onclick="AddTalla()"><img src="{$WEB_ROOT}/images/icons/add.png">Agregar Talla</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0)" onclick="AddColor()"><img src="{$WEB_ROOT}/images/icons/add.png">Agregar Color</a>
<div id="tblProporcion" align="center">
{include file="{$DOC_ROOT}/templates/lists/pedidos-proporciones.tpl"}
</div>
</td>
</tr>
<tr>
<td colspan="5" align="center">
<div align="right" style="margin-right:20px">
<a href="javascript:void(0)" onclick="AddProducto()">
+ Agregar Producto
</a>
</div>
</td>
</tr>
<tr>
<td colspan="5" align="center" style="border-top:1px solid #CCCCCC; padding-top:10px">
<b>.:: PRODUCTOS ::.</b>
</td>
</tr>
<tr>
<td colspan="5" align="center">
<div id="productos">
{include file="{$DOC_ROOT}/templates/lists/pedidos-productos.tpl"}
</div>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="tblDistribucion" style="display:none">
<tr>
<td align="center" class="lineProd">
<b>.:: DISTRIBUCION ::.</b>
</td>
</tr>
<tr>
<td align="center" id="listDist">
{include file="{$DOC_ROOT}/templates/lists/pedidos-productos-resurtido.tpl"}
</td>
</tr>
</table>
<hr />
</fieldset>
</form>
* Campos requeridos
<br />
<div align="center" style="display:none" id="loader">
<img src="{$WEB_ROOT}/images/loading.gif">
<br>
Guardando Informaci&oacute;n...
<br />Este proceso puede tardar unos segundos.
<br />&nbsp;
</div>
<div style="clear:both"></div>
<div style="margin-left:300px">
<a class="button" name="btnSave" onclick="AddPedido()" style="margin-right:20px">
<span>Enviar a Autorizaci&oacute;n</span>
</a>
<a class="button" href="javascript:void(0)" onclick="CancelPedido()">
<span>Cancelar Pedido</span>
</a>
</div>
<div style="clear:both"></div>
</div>