167 lines
8.8 KiB
PHP
Executable File
167 lines
8.8 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-09-08 10:07:57
|
|
compiled from "/var/www/html/templates/items/pedidos-base.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:168233612254075a964dfc79-19801816%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'b736b870c8d0dbc75f0ec2505aba6f20b29746d0' =>
|
|
array (
|
|
0 => '/var/www/html/templates/items/pedidos-base.tpl',
|
|
1 => 1410130455,
|
|
),
|
|
),
|
|
'nocache_hash' => '168233612254075a964dfc79-19801816',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_smarty_tpl->getVariable('item')->value['status']=="Pendiente"){?>
|
|
<?php $_smarty_tpl->assign("class","pedRed",null,null);?>
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="Distribucion"){?>
|
|
<?php $_smarty_tpl->assign("class","pedNar",null,null);?>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('item')->value['distComp']==0){?>
|
|
<?php $_smarty_tpl->assign("class","pedYel",null,null);?>
|
|
<?php }?>
|
|
<tr>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
"><div align="center">
|
|
<?php if ($_smarty_tpl->getVariable('item')->value['status']=="Pendiente"){?>
|
|
Pendiente de Aprobación
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="Aprobado"){?>
|
|
En espera de Distribución
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="Rechazado"&&$_smarty_tpl->getVariable('item')->value['resurtido']=="1"){?>
|
|
Resurtido No Autorizado
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="Rechazado"){?>
|
|
Rechazado
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="Distribucion"&&$_smarty_tpl->getVariable('item')->value['resurtido']=="1"){?>
|
|
Resurtido Pendiente de Autorización
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="Distribucion"){?>
|
|
Pendiente Autorización Distribución
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="Autorizado"){?>
|
|
Ord. Comp. Pte. de Env. a Prov.
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="Sugerencia"){?>
|
|
Con Obs. de Distribución
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="OrdenCompEnv"){?>
|
|
Orden Pte. Ingreso a CEDIS
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="OrdenCompEnvCan"){?>
|
|
Orden de Compra Env. Cancelada
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="OrdenCompIng"){?>
|
|
|
|
Mercancía Recibida en CEDIS
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="OrdenCompIngP"){?>
|
|
Merc. Rec. Parcialmente en CEDIS
|
|
<?php }elseif($_smarty_tpl->getVariable('item')->value['status']=="EnvSuc"){?>
|
|
Envíado a Tiendas
|
|
<?php }?>
|
|
</div></td>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
"><div align="center"><?php echo $_smarty_tpl->getVariable('item')->value['noPedido'];?>
|
|
</div>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
"><div align="center"><?php echo $_smarty_tpl->getVariable('item')->value['proveedor'];?>
|
|
</div></td>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
"><div align="center">$<?php echo $_smarty_tpl->getVariable('item')->value['costoCompra'];?>
|
|
</div></td>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
"><div align="center">$<?php echo $_smarty_tpl->getVariable('item')->value['precioVenta'];?>
|
|
</div></td>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
"><div align="center"><?php echo $_smarty_tpl->getVariable('item')->value['utilidad'];?>
|
|
%</div></td>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
"><div align="center"><?php if ($_smarty_tpl->getVariable('item')->value['metodoCompra']=="conIva"){?>IVA Incluido<?php }else{ ?>IVA No Incluido<?php }?></div></td>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
"><div align="center"><?php echo $_smarty_tpl->getVariable('item')->value['fecha'];?>
|
|
</div></td>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
">
|
|
<div align="center">
|
|
<?php echo $_smarty_tpl->getVariable('item')->value['fechaEntrega'];?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('item')->value['fechaEntregaF']){?>
|
|
Al <br />
|
|
<?php echo $_smarty_tpl->getVariable('item')->value['fechaEntregaF'];?>
|
|
|
|
<?php }?>
|
|
</div>
|
|
</td>
|
|
<td align="center" class="<?php echo $_smarty_tpl->getVariable('class')->value;?>
|
|
"><div align="center">
|
|
|
|
</div></td>
|
|
<td align="center"><div align="center">
|
|
<?php if ($_smarty_tpl->getVariable('item')->value['status']=="OrdenCompIng"||$_smarty_tpl->getVariable('item')->value['status']=="EnvSuc"){?>
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/pedidos-acuse/pedidoId/<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
" title="Acuse de Recibo" target="_blank">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/report.png" border="0"/>
|
|
</a>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="direccion"){?>
|
|
<a href="javascript:void(0)" onclick="CalificarProv(<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
)" title="Calificar Proveedor">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/medal.png" border="0"/>
|
|
</a>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/pedidos-revivir/id/<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
" title="Revivir Pedido">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/reload.png" border="0"/>
|
|
</a>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('item')->value['status']=="OrdenCompEnv"||$_smarty_tpl->getVariable('item')->value['status']=="OrdenCompEnvCan"||$_smarty_tpl->getVariable('item')->value['status']=="OrdenCompIng"||$_smarty_tpl->getVariable('item')->value['status']=="EnvSuc"){?>
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/pedidos-enviar-prov/show-pdf/<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
" title="Ver Orden de Compra">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/pdf.png" border="0"/>
|
|
</a>
|
|
<?php }?>
|
|
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/pedidos-detalles/id/<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
" title="Ver Detalles">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/details.png" border="0"/>
|
|
</a>
|
|
|
|
<?php if (($_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="compras")&&$_smarty_tpl->getVariable('item')->value['status']!="Rechazado"){?>
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/pedidos-editar/id/<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
" title="Editar Pedido">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/pencil.png" border="0"/>
|
|
</a>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="compras"&&$_smarty_tpl->getVariable('item')->value['status']=="OrdenCompEnvCan"){?>
|
|
<a href="javascript:void(0)" onclick="ContinuarPedido(<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
)" title="Activar Pedido para Continuar">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/continue.png" border="0"/>
|
|
</a>
|
|
<?php }?>
|
|
|
|
<?php if (($_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="compras")&&($_smarty_tpl->getVariable('item')->value['status']=="Autorizado"||$_smarty_tpl->getVariable('item')->value['status']=="OrdenCompEnv")){?>
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/pedidos-distribucion/id/<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
" title="Editar Distribución">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/cart_edit.png" border="0"/>
|
|
</a>
|
|
<?php }?>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|