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

24
modules/user.php Executable file
View File

@@ -0,0 +1,24 @@
<?php
if($_SESSION['tipoUsr'] == 'Cliente'){
$Usr['type'] = 'cliente';
}else{
$Usr = $user->Info();
if( $Usr['type'] == 'gerente' ||
$Usr['type'] == 'facturacion' ||
$Usr['type'] == 'vendedor' ||
$Usr['type'] == 'cajero'
){
$sucursal->setSucursalId($_SESSION['idSuc']);
$Usr['sucursal'] = utf8_decode(urldecode($sucursal->GetNameById()));
}
}//else
$smarty->assign('Usr', $Usr);
?>