Primer commit del sistema avantika sin cambios
This commit is contained in:
23
modules/reportes-inventario.php
Executable file
23
modules/reportes-inventario.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
$empresa->AuthUser();
|
||||
|
||||
if($Usr['type'] != 'admin' && $Usr['type'] != 'centralizador' && $Usr['type'] != 'compras' && $Usr['type'] != 'direccion' && $Usr['type'] != 'supervisor'){
|
||||
header('Location: '.WEB_ROOT);
|
||||
exit;
|
||||
}
|
||||
|
||||
$reportes->setIdSuc($Usr['sucursalId']);
|
||||
$resSuc = $reportes->EnumSucursales($Usr['type'],$Usr['usuarioId']);
|
||||
$resSuc = $util->DecodeUrlResult($resSuc);
|
||||
|
||||
$departamentos = $prodCat->EnumerateAll();
|
||||
$proveedores = $reportes->proveedores();
|
||||
|
||||
$smarty->assign('tipo', $Usr['type']);
|
||||
$smarty->assign('resSuc',$resSuc);
|
||||
$smarty->assign('productos',$data);
|
||||
$smarty->assign('departamentos', $departamentos);
|
||||
$smarty->assign('proveedores',$proveedores);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user