Files
ventas_php/modules/devoluciones-cedis-detalles.php

43 lines
1.1 KiB
PHP
Executable File

<?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);
?>