Primer commit del sistema avantika sin cambios
This commit is contained in:
@@ -0,0 +1,605 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-08 18:33:42
|
||||
compiled from "./templates/forms/detalles-pedido.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:1374367046540e3cd60642d4-99301233%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a85645d896e2dab237281565c7199d55894bd80c' =>
|
||||
array (
|
||||
0 => './templates/forms/detalles-pedido.tpl',
|
||||
1 => 1410130450,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '1374367046540e3cd60642d4-99301233',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<?php if (!is_callable('smarty_modifier_date_format')) include '/var/www/html/libs/plugins/modifier.date_format.php';
|
||||
?><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"){?>
|
||||
|
||||
Mercancía Recibida en CEDIS
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIngP"){?>
|
||||
Merc. Rec. Parcialmente en CEDIS
|
||||
<?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"||$_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIngP"){?>
|
||||
<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 Folio 1:</td>
|
||||
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['fechaFolio']!="0000-00-00"){?><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('info')->value['fechaFolio'],"%d-%m-%Y");?>
|
||||
<?php }?> </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 Folio 2:</td>
|
||||
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['fechaFolio2']!="0000-00-00"){?><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('info')->value['fechaFolio2'],"%d-%m-%Y");?>
|
||||
<?php }?> </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 Folio 3:</td>
|
||||
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['fechaFolio3']!="0000-00-00"){?><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('info')->value['fechaFolio3'],"%d-%m-%Y");?>
|
||||
<?php }?> </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 Folio 4:</td>
|
||||
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['fechaFolio4']!="0000-00-00"){?><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('info')->value['fechaFolio4'],"%d-%m-%Y");?>
|
||||
<?php }?> </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 Folio 5:</td>
|
||||
<td><div class="txtFrm"><?php if ($_smarty_tpl->getVariable('info')->value['fechaFolio5']!="0000-00-00"){?><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('info')->value['fechaFolio5'],"%d-%m-%Y");?>
|
||||
<?php }?> </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>
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['status']!="Pendiente"){?>
|
||||
<tr>
|
||||
<td colspan="5" align="center" class="lineProd">
|
||||
<b>.:: PRODUCTOS ::.</b>
|
||||
<div style="float:right"> <a href="javascript:void(0)" id="showProd" onclick="ShowProductos()">[-]</a> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center">
|
||||
<div id="productos" style="padding-top:10px">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos2.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>
|
||||
<?php }?>
|
||||
<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']=="OrdenCompIngP"||$_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']=="OrdenCompIngP"||$_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>
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['status']=="Aprobado"||$_smarty_tpl->getVariable('info')->value['status']=="Distribucion"||$_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']=="OrdenCompIngP"||$_smarty_tpl->getVariable('info')->value['status']=="EnvSuc"){?>
|
||||
<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 if ($_smarty_tpl->getVariable('info')->value['status']=="Aprobado"&&($_smarty_tpl->getVariable('Usr')->value['type']=="compras"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen")){?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-dist.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);?>
|
||||
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"&&$_smarty_tpl->getVariable('Usr')->value['type']=="direccion"&&$_smarty_tpl->getVariable('info')->value['resurtido']=="1"){?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-dist4.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);?>
|
||||
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"&&($_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen")){?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-dist2.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);?>
|
||||
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Sugerencia"&&$_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-dist3.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);?>
|
||||
|
||||
<?php }elseif(($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnv"||$_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIngP")&&$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-dist5.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);?>
|
||||
|
||||
<?php }else{ ?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-dist4.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);?>
|
||||
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['status']=="Autorizado"&&$_smarty_tpl->getVariable('info')->value['piezasCaja']==0&&$_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>
|
||||
<tr>
|
||||
<td colspan="5" align="center" class="lineProd">
|
||||
<b>.:: PIEZAS POR CAJA ::.</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<br />
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-cajas.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>
|
||||
<?php }elseif($_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']=="OrdenCompIngP"||$_smarty_tpl->getVariable('info')->value['status']=="EnvSuc"){?>
|
||||
<tr>
|
||||
<td colspan="5" align="center" class="lineProd">
|
||||
<b>.:: PIEZAS POR CAJA ::.</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<br />
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-cajas2.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>
|
||||
<?php }?>
|
||||
|
||||
</table>
|
||||
<hr />
|
||||
|
||||
<?php if (($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnv"||$_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIngP")&&$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
|
||||
<div align="center">
|
||||
<form name="frmFolios" id="frmFolios">
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><b>Folio del Proveedor</b></td>
|
||||
<td align="center"><b>Fecha</b></td>
|
||||
<td align="center"></td>
|
||||
</tr>
|
||||
<?php $_smarty_tpl->tpl_vars['ii'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['ii']->step = (5 - (1) < 0) ? -1 : 1;$_smarty_tpl->tpl_vars['ii']->total = (int)ceil(($_smarty_tpl->tpl_vars['ii']->step > 0 ? 5+1 - 1 : 1-(5)+1)/abs($_smarty_tpl->tpl_vars['ii']->step));
|
||||
if ($_smarty_tpl->tpl_vars['ii']->total > 0){
|
||||
for ($_smarty_tpl->tpl_vars['ii']->value = 1, $_smarty_tpl->tpl_vars['ii']->iteration = 1;$_smarty_tpl->tpl_vars['ii']->iteration <= $_smarty_tpl->tpl_vars['ii']->total;$_smarty_tpl->tpl_vars['ii']->value += $_smarty_tpl->tpl_vars['ii']->step, $_smarty_tpl->tpl_vars['ii']->iteration++){
|
||||
$_smarty_tpl->tpl_vars['ii']->first = $_smarty_tpl->tpl_vars['ii']->iteration == 1;$_smarty_tpl->tpl_vars['ii']->last = $_smarty_tpl->tpl_vars['ii']->iteration == $_smarty_tpl->tpl_vars['ii']->total;?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('ii')->value==1){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio']}",null,null);?>
|
||||
<?php }elseif($_smarty_tpl->getVariable('ii')->value==2){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv2']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio2']}",null,null);?>
|
||||
<?php }elseif($_smarty_tpl->getVariable('ii')->value==3){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv3']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio3']}",null,null);?>
|
||||
<?php }elseif($_smarty_tpl->getVariable('ii')->value==4){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv4']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio4']}",null,null);?>
|
||||
<?php }elseif($_smarty_tpl->getVariable('ii')->value==5){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv5']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio5']}",null,null);?>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('fecha')->value=="0000-00-00"){?>
|
||||
<?php $_smarty_tpl->assign("fecha",'',null,null);?>
|
||||
<?php }else{ ?>
|
||||
<?php $_smarty_tpl->assign("fecha",(smarty_modifier_date_format($_smarty_tpl->getVariable('fecha')->value,"%d-%m-%Y")),null,null);?>
|
||||
<?php }?>
|
||||
|
||||
<tr>
|
||||
<td align="center">
|
||||
<input type="text" name="folioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
" id="folioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
" class="smallInput" value="<?php echo $_smarty_tpl->getVariable('folio')->value;?>
|
||||
" />
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="text" name="fechaFolioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
" id="fechaFolioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
" class="smallInput" maxlength="10" value="<?php echo $_smarty_tpl->getVariable('fecha')->value;?>
|
||||
" />
|
||||
</td>
|
||||
<td align="center">
|
||||
<div>
|
||||
<a href="javascript:void(0)" onclick="NewCal('fechaFolioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
','ddmmyyyy')">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/calendar.gif" /></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }} ?>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<hr />
|
||||
<?php }?>
|
||||
|
||||
<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>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['status']=="Pendiente"&&($_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen")){?>
|
||||
|
||||
<div style="margin-left:335px">
|
||||
<a class="button" name="btnSave" onclick="AprobarPedido(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
,<?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
||||
,'<?php echo $_smarty_tpl->getVariable('info')->value['proveedor2'];?>
|
||||
','<?php if ($_smarty_tpl->getVariable('info')->value['totalDesc']){?><?php echo $_smarty_tpl->getVariable('info')->value['totalDesc'];?>
|
||||
<?php }else{ ?><?php echo $_smarty_tpl->getVariable('info')->value['total'];?>
|
||||
<?php }?>','<?php echo $_smarty_tpl->getVariable('info')->value['metodoCompra'];?>
|
||||
')" style="margin-right:20px">
|
||||
<span>Aprobar Pedido</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a class="button" name="btnSave" onclick="RechazarPedidoPopup(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
)" style="margin-right:20px">
|
||||
<span>Rechazar Pedido</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Aprobado"&&($_smarty_tpl->getVariable('Usr')->value['type']=="compras"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen")){?>
|
||||
|
||||
<div style="margin-left:360px">
|
||||
<a class="button" name="btnSave" onclick="DistribucionPedido()">
|
||||
<span>Enviar a Autorizar Distribución</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Sugerencia"&&$_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>
|
||||
|
||||
<div style="margin-left:360px">
|
||||
<a class="button" name="btnSave" onclick="DistribucionPedido2(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
)">
|
||||
<span>Enviar a Autorizar Distribución</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"&&($_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen")){?>
|
||||
|
||||
<div style="margin-left:<?php if ($_smarty_tpl->getVariable('info')->value['resurtido']){?>380px<?php }else{ ?>415px<?php }?>; <?php if ($_smarty_tpl->getVariable('info')->value['sugerencias']>0){?>display:none<?php }?>" id="btnAutorizar">
|
||||
<a class="button" name="btnSave" onclick="AutorizarPedido(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
,<?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
||||
,'<?php echo $_smarty_tpl->getVariable('info')->value['proveedor2'];?>
|
||||
','<?php echo $_smarty_tpl->getVariable('info')->value['total'];?>
|
||||
','<?php echo $_smarty_tpl->getVariable('info')->value['metodoCompra'];?>
|
||||
')">
|
||||
<span>Autorizar</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['resurtido']){?>
|
||||
<div>
|
||||
<a class="button" name="btnSave" onclick="RechazarPedidoPopup(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
)" style="margin-right:20px">
|
||||
<span>Rechazar</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
|
||||
<div style="margin-left:345px; <?php if ($_smarty_tpl->getVariable('info')->value['sugerencias']==0){?>display:none<?php }?>" id="btnSug">
|
||||
<a class="button" name="btnSave" onclick="EnviarSugerencias(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
)">
|
||||
<span>Enviar Sugerencias de Distribución</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Autorizado"&&$_smarty_tpl->getVariable('info')->value['piezasCaja']==0&&$_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>
|
||||
|
||||
<div style="margin-left:382px;">
|
||||
<a class="button" name="btnSave" onclick="SavePiezasCaja(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
)">
|
||||
<span>Guardar Piezas por Caja</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Autorizado"&&($_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="compras")){?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['distComp']==1){?>
|
||||
<div style="margin-left:342px;">
|
||||
<a class="button" name="btnSave" onclick="EnviarOrdenCompra(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
,1)">
|
||||
<span>Enviar Orden de Compra a Proveedor</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
|
||||
<div style="margin-left:382px;">
|
||||
<a class="button" name="btnSave" onclick="EnviarOrdenCompra(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
,0)">
|
||||
<span>Marcar como Enviado</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/boxes/msg-distribucion.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);?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnv"&&$_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['distComp']==1){?>
|
||||
<div style="margin-left:322px;">
|
||||
<a class="button" name="btnSave" onclick="CancelarOrdenCompraEnv(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
)">
|
||||
<span>Cancelar Orden de Compra Enviada a Proveedor</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/boxes/msg-distribucion.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);?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php }elseif(($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnv"||$_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIngP")&&$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('fechaEntExp')->value){?>
|
||||
<div align="center" class="txtFailMsg">
|
||||
La Fecha de Entrega ha expirado. Por lo que el pedido se cerrará y se marcará como
|
||||
Mercancí Recibida en CEDIS.
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['distComp']==1){?>
|
||||
<div style="margin-left:365px;">
|
||||
<a class="button" name="btnSave" onclick="IngresarOrdenCompra(<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
,<?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
||||
,'<?php echo $_smarty_tpl->getVariable('info')->value['proveedor2'];?>
|
||||
','<?php echo $_smarty_tpl->getVariable('info')->value['totalPzas'];?>
|
||||
','<?php echo $_smarty_tpl->getVariable('info')->value['total'];?>
|
||||
')">
|
||||
<span>Ingresar Orden de Compra</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/boxes/msg-distribucion.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);?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<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>
|
||||
Reference in New Issue
Block a user