Primer commit del sistema avantika sin cambios

This commit is contained in:
2026-01-06 19:42:24 -06:00
commit 3ae4be5957
7127 changed files with 440072 additions and 0 deletions

23
modules/reportes-inventario.php Executable file
View 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);
?>