323 lines
16 KiB
PHP
Executable File
323 lines
16 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-09-19 12:10:33
|
|
compiled from "./templates/forms/detalles-pedido-distribucion.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:1355696810541c6389540d29-24507932%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'a943c31ae153b6569511f3c6b1efb6ab2f577772' =>
|
|
array (
|
|
0 => './templates/forms/detalles-pedido-distribucion.tpl',
|
|
1 => 1410130450,
|
|
),
|
|
),
|
|
'nocache_hash' => '1355696810541c6389540d29-24507932',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<div id="divForm">
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td width="120" height="40">No. Proveedor:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['noProv'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="130"></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Proveedor:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['proveedor'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="130">No. de Pedido:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Fecha del Pedido:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fecha'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Fecha de Entrega:</td>
|
|
<td>
|
|
<div class="txtFrm">
|
|
<?php echo $_smarty_tpl->getVariable('info')->value['fechaEntrega'];?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('info')->value['fechaEntregaF']){?>
|
|
Al <?php echo $_smarty_tpl->getVariable('info')->value['fechaEntregaF'];?>
|
|
|
|
<?php }?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Método de Compra:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['metodoCompra'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Status:</td>
|
|
<td><div class="txtFrm">
|
|
<?php if ($_smarty_tpl->getVariable('info')->value['status']=="Pendiente"){?>
|
|
Pendiente de Aprobación
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Aprobado"){?>
|
|
En espera de Distribución
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Rechazado"&&$_smarty_tpl->getVariable('info')->value['resurtido']=="1"){?>
|
|
Resurtido No Autorizado
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Rechazado"){?>
|
|
Rechazado
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"&&$_smarty_tpl->getVariable('info')->value['resurtido']=="1"){?>
|
|
Resurtido Pendiente de Autorización
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"){?>
|
|
Pendiente Autorización Distribución
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Autorizado"){?>
|
|
Orden de Compra Pte. de Envío a Prov.
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Sugerencia"){?>
|
|
Con Obs. de Distribución
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnv"){?>
|
|
Orden Pendiente de Ingreso a CEDIS
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnvCan"){?>
|
|
Orden de Compra Enviada Cancelada
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIng"){?>
|
|
Pte. Envío a Tiendas
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="EnvSuc"){?>
|
|
Envíado a Tiendas
|
|
<?php }?>
|
|
</div></td>
|
|
</tr>
|
|
<?php if ($_smarty_tpl->getVariable('info')->value['status']=="Aprobado"){?>
|
|
<tr>
|
|
<td width="120" height="40">Resurtido:</td>
|
|
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['resurtido']==1){?>Sí<?php }else{ ?>No<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Fecha Aprobación:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaAprobacion'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40"></td>
|
|
<td></td>
|
|
<td width="10"></td>
|
|
<td width="130">Usuario:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['usuario'];?>
|
|
</div></td>
|
|
</tr>
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Rechazado"){?>
|
|
<tr>
|
|
<td width="120" height="40">Motivo:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['motivo'];?>
|
|
<?php if ($_smarty_tpl->getVariable('info')->value['otroMotivo']){?>:: <?php echo $_smarty_tpl->getVariable('info')->value['otroMotivo'];?>
|
|
<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Fecha Rechazo:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaRechazo'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Resurtido:</td>
|
|
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['resurtido']==1){?>Sí<?php }else{ ?>No<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Usuario:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['usuario'];?>
|
|
</div></td>
|
|
</tr>
|
|
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"){?>
|
|
<tr>
|
|
<td width="120" height="40">Resurtido:</td>
|
|
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['resurtido']==1){?>Sí<?php }else{ ?>No<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Fecha de Envio para Autorización:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaDistribucion'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40"></td>
|
|
<td></td>
|
|
<td width="10"></td>
|
|
<td width="130">Usuario:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['usuario'];?>
|
|
</div></td>
|
|
</tr>
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Autorizado"){?>
|
|
<tr>
|
|
<td width="120" height="40">Resurtido:</td>
|
|
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['resurtido']==1){?>Sí<?php }else{ ?>No<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Fecha de Autorización:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaAutorizacion'];?>
|
|
</div></td>
|
|
</tr>
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Sugerencia"){?>
|
|
<tr>
|
|
<td width="120" height="40">Resurtido:</td>
|
|
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['resurtido']==1){?>Sí<?php }else{ ?>No<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Fecha de Envío Sugerencias:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaSugerencia'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40"></td>
|
|
<td></td>
|
|
<td width="10"></td>
|
|
<td width="130">Usuario:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['usuario'];?>
|
|
</div></td>
|
|
</tr>
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnv"){?>
|
|
<tr>
|
|
<td width="120" height="40">Resurtido:</td>
|
|
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['resurtido']==1){?>Sí<?php }else{ ?>No<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Fecha de Envío Orden de Compra:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaOrdenCompEnv'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40"></td>
|
|
<td></td>
|
|
<td width="10"></td>
|
|
<td width="130">Usuario:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['usuario'];?>
|
|
</div></td>
|
|
</tr>
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIng"){?>
|
|
<tr>
|
|
<td width="120" height="40">Resurtido:</td>
|
|
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['resurtido']==1){?>Sí<?php }else{ ?>No<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Fecha de Ingreso Orden de Compra:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaOrdenCompIng'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Folio Proveedor 1:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['folioProv'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Usuario:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['usuario'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Fecha 1:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaFolio'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="130"></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Folio Proveedor 2:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['folioProv2'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="120" height="40">Fecha 2:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaFolio2'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Folio Proveedor 3:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['folioProv3'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="120" height="40">Fecha 3:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaFolio3'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Folio Proveedor 4:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['folioProv4'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="120" height="40">Fecha 4:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaFolio4'];?>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" height="40">Folio Proveedor 5:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['folioProv5'];?>
|
|
</div></td>
|
|
<td width="10"></td>
|
|
<td width="120" height="40">Fecha 5:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fechaFolio5'];?>
|
|
</div></td>
|
|
</tr>
|
|
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="EnvSuc"){?>
|
|
<tr>
|
|
<td width="120" height="40">Resurtido:</td>
|
|
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['resurtido']==1){?>Sí<?php }else{ ?>No<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130"></td>
|
|
<td></td>
|
|
</tr>
|
|
<?php }else{ ?>
|
|
<tr>
|
|
<td width="120" height="40">Resurtido:</td>
|
|
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['resurtido']==1){?>Sí<?php }else{ ?>No<?php }?></div></td>
|
|
<td width="10"></td>
|
|
<td width="130">Usuario:</td>
|
|
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['usuario'];?>
|
|
</div></td>
|
|
</tr>
|
|
<?php }?>
|
|
<tr><td colspan="5"> </td></tr>
|
|
<tr>
|
|
<td colspan="5" align="center" class="lineProd">
|
|
<b>.:: TOTALES ::.</b>
|
|
<?php if ($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"||$_smarty_tpl->getVariable('info')->value['status']=="Aprobado"||$_smarty_tpl->getVariable('info')->value['status']=="Sugerencia"||$_smarty_tpl->getVariable('info')->value['status']=="Autorizado"||$_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnv"||$_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIng"||$_smarty_tpl->getVariable('info')->value['status']=="EnvSuc"){?>
|
|
<div style="float:right"> <a href="javascript:void(0)" id="showTotal" onclick="ShowTotales()">[-]</a> </div>
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5" align="center">
|
|
<div id="totales" style="display:<?php if ($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"||$_smarty_tpl->getVariable('info')->value['status']=="Aprobado"||$_smarty_tpl->getVariable('info')->value['status']=="Sugerencia"||$_smarty_tpl->getVariable('info')->value['status']=="Autorizado"||$_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnv"||$_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIng"||$_smarty_tpl->getVariable('info')->value['status']=="EnvSuc"){?><?php }?>; padding-top:10px">
|
|
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos3.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>
|
|
<tr>
|
|
<td colspan="5" align="center" class="lineProd">
|
|
<div id="totales">
|
|
<b>.:: DISTRIBUCION ::.</b>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5" align="center" id="listProds">
|
|
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-dist6.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);?>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr />
|
|
|
|
<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="margin-left:382px;">
|
|
<a class="button" name="btnSave" onclick="DistribucionPedido()">
|
|
<span>Guardar Distribución</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div style="clear:both"></div>
|
|
<br />
|
|
<div align="center"><a href="javascript:void(0)" onclick="history.back(-1)"> << Regresar </a></div>
|
|
|
|
<div style="clear:both"></div>
|
|
|
|
</div>
|