167 lines
8.9 KiB
PHP
Executable File
167 lines
8.9 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 11:08:40
|
|
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/pedidos-base.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:19690167953612008272b18-92094416%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'7dcab4a13b608ae94ee38216dd8e3fa01c1ee4ff' =>
|
|
array (
|
|
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/pedidos-base.tpl',
|
|
1 => 1395339832,
|
|
),
|
|
),
|
|
'nocache_hash' => '19690167953612008272b18-92094416',
|
|
'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>
|