Primer commit del sistema avantika sin cambios

This commit is contained in:
2026-01-06 19:42:24 -06:00
commit 3ae4be5957
7127 changed files with 440072 additions and 0 deletions

View File

@@ -0,0 +1,323 @@
<?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&eacute;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&oacute;n
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Aprobado"){?>
En espera de Distribuci&oacute;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&oacute;n
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"){?>
Pendiente Autorizaci&oacute;n Distribuci&oacute;n
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Autorizado"){?>
Orden de Compra Pte. de Env&iacute;o a Prov.
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Sugerencia"){?>
Con Obs. de Distribuci&oacute;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&iacute;o a Tiendas
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="EnvSuc"){?>
Env&iacute;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&iacute;<?php }else{ ?>No<?php }?></div></td>
<td width="10"></td>
<td width="130">Fecha Aprobaci&oacute;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&iacute;<?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&iacute;<?php }else{ ?>No<?php }?></div></td>
<td width="10"></td>
<td width="130">Fecha de Envio para Autorizaci&oacute;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&iacute;<?php }else{ ?>No<?php }?></div></td>
<td width="10"></td>
<td width="130">Fecha de Autorizaci&oacute;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&iacute;<?php }else{ ?>No<?php }?></div></td>
<td width="10"></td>
<td width="130">Fecha de Env&iacute;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&iacute;<?php }else{ ?>No<?php }?></div></td>
<td width="10"></td>
<td width="130">Fecha de Env&iacute;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&iacute;<?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'];?>
&nbsp;</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'];?>
&nbsp;</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'];?>
&nbsp;</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'];?>
&nbsp;</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'];?>
&nbsp;</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'];?>
&nbsp;</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'];?>
&nbsp;</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&iacute;<?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&iacute;<?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">&nbsp;</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&oacute;n...
<br />Este proceso puede tardar unos segundos.
<br />&nbsp;
</div>
<div style="margin-left:382px;">
<a class="button" name="btnSave" onclick="DistribucionPedido()">
<span>Guardar Distribuci&oacute;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>