Primer commit del sistema avantika sin cambios
This commit is contained in:
43
modules/devoluciones-cedis-detalles.php
Executable file
43
modules/devoluciones-cedis-detalles.php
Executable file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
$empresa->AuthUser();
|
||||
|
||||
if($Usr['type'] != 'admin' && $Usr['type'] != 'compras' && $Usr['type'] != 'direccion' && $Usr['type'] != 'almacen'){
|
||||
header('Location: '.WEB_ROOT);
|
||||
exit;
|
||||
}
|
||||
|
||||
$devCedisId = intval($_GET['id']);
|
||||
|
||||
$devolucion->setDevCedisId($devCedisId);
|
||||
$info = $devolucion->InfoCedis();
|
||||
|
||||
$resProductos = $devolucion->GetProdsCedis();
|
||||
|
||||
$productos = array();
|
||||
foreach($resProductos as $res){
|
||||
|
||||
$producto->setProductoId($res['productoId']);
|
||||
$infP = $producto->Info();
|
||||
|
||||
$sucursal->setSucursalId($res['sucursalId']);
|
||||
$res['sucursal'] = urldecode($sucursal->GetNameById());
|
||||
|
||||
$prodCat->setProdCatId($infP['prodCatId']);
|
||||
$res['departamento'] = ($prodCat->GetNameById());
|
||||
|
||||
$prodSubcat->setProdSubcatId($infP['prodSubcatId']);
|
||||
$res['linea'] = ($prodSubcat->GetNameById());
|
||||
|
||||
$res['modelo'] = ($infP['modelo']);
|
||||
$res['codigoBarra'] = $infP['codigoBarra'];
|
||||
|
||||
$res['atributos'] = $producto->GetAtributosAll();
|
||||
|
||||
$productos[] = $res;
|
||||
}
|
||||
|
||||
$smarty->assign('info',$info);
|
||||
$smarty->assign('products',$productos);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user