137 lines
5.4 KiB
PHP
Executable File
137 lines
5.4 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-09-08 12:02:43
|
|
compiled from "./templates/forms/agregar-devolucion-cedis.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:1543270432540de132ec0750-54917913%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'17806a96b7123e5591e8a135728c71a2537ab90b' =>
|
|
array (
|
|
0 => './templates/forms/agregar-devolucion-cedis.tpl',
|
|
1 => 1410130449,
|
|
),
|
|
),
|
|
'nocache_hash' => '1543270432540de132ec0750-54917913',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<div id="divForm">
|
|
<form id="frmDevolucion" name="frmDevolucion" method="post" onsubmit="return false">
|
|
<input type="hidden" id="type" name="type" value="saveDevolucion" />
|
|
<fieldset>
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td width="120" height="40">No. de Devolución</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['noDevolucion'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Fecha</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fecha'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5" align="center" height="50"><b>.:: AGREGAR PRODUCTOS ::.</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">* Sucursal:</td>
|
|
<td>
|
|
<select name="sucursalId" id="sucursalId" class="largeInput" style="width:290px" onchange="SearchProducto()">
|
|
<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('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;
|
|
?>
|
|
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
"><?php echo utf8_decode($_smarty_tpl->getVariable('item')->value['nombre']);?>
|
|
</option>
|
|
<?php }} ?>
|
|
</select>
|
|
</td>
|
|
<td width="10"></td>
|
|
<td width="130">* Código Barra:</td>
|
|
<td>
|
|
<input name="codigoBarra" id="codigoBarra" type="text" class="largeInput" style="width:290px" onkeyup="CheckKey(event)"/>
|
|
<input type="hidden" name="productoId" id="productoId" value="" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">* Cantidad a Dev:</td>
|
|
<td>
|
|
<input name="cantidad" id="cantidad" type="text" class="largeInput" style="width:290px" />
|
|
</td>
|
|
<td width="10"></td>
|
|
<td width="130">Descripción:</td>
|
|
<td><div id="enumAtributos" class="txtFrm"></div></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Proveedor:</td>
|
|
<td><div id="txtProveedor" class="txtFrm"></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Disponible:</td>
|
|
<td><div id="txtDisponible" class="txtFrm"></div></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5" align="center"> </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">
|
|
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr />
|
|
|
|
</fieldset>
|
|
</form>
|
|
|
|
* Campos requeridos
|
|
|
|
<br />
|
|
|
|
<div align="center" style="display:none" id="loader">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/loading.gif">
|
|
<br>
|
|
Guardando Información...
|
|
<br />Este proceso puede tardar unos segundos.
|
|
<br />
|
|
</div>
|
|
|
|
<div style="clear:both"></div>
|
|
|
|
<div style="margin-left:300px">
|
|
<a class="button" name="btnSave" onclick="AddPedido()" style="margin-right:20px">
|
|
<span>Guardar Devolución</span>
|
|
</a>
|
|
<a class="button" href="javascript:void(0)" onclick="CancelDevolucion()">
|
|
<span>Cancelar Devolución</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div style="clear:both"></div>
|
|
|
|
</div>
|