Primer commit del sistema avantika sin cambios
This commit is contained in:
34
modules/inventario-ajustar-list.php
Executable file
34
modules/inventario-ajustar-list.php
Executable file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
$empresa->AuthUser();
|
||||
|
||||
if(!$usuario->AllowPage($page, $_SESSION['loginKey'])){
|
||||
header('Location: '.WEB_ROOT);
|
||||
exit;
|
||||
}
|
||||
|
||||
$inventario->setPage($_GET['p']);
|
||||
|
||||
$resReportes = $inventario->EnumAjustes();
|
||||
|
||||
$items = array();
|
||||
foreach($resReportes['items'] as $res){
|
||||
|
||||
$sucursal->setSucursalId($res['sucursalId']);
|
||||
$res['sucursal'] = urldecode($sucursal->GetNameById());
|
||||
|
||||
$usuario->setUsuarioId($res['usuarioId']);
|
||||
$res['usuario'] = urldecode($usuario->GetNameById());
|
||||
|
||||
$producto->setProductoId($res['productoId']);
|
||||
$infP = $producto->Info();
|
||||
|
||||
$res['codigoBarra'] = $infP['codigoBarra'];
|
||||
|
||||
$items[] = $res;
|
||||
}
|
||||
$resReportes['items'] = $items;
|
||||
|
||||
$smarty->assign('resReportes',$resReportes);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user