Primer commit del sistema avantika sin cambios
This commit is contained in:
36
modules/inventario-wizprods2.php
Executable file
36
modules/inventario-wizprods2.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
$empresa->AuthUser();
|
||||
|
||||
$invWizardId = intval($_GET['id']);
|
||||
|
||||
$inventario->setInvWizardId($invWizardId);
|
||||
$info = $inventario->InfoWizard2();
|
||||
|
||||
$resProductos = $inventario->EnumWizardProds2();
|
||||
|
||||
$productos = array();
|
||||
foreach($resProductos as $res){
|
||||
|
||||
$producto->setProductoId($res['productoId']);
|
||||
$infP = $producto->Info();
|
||||
|
||||
$res['codigoBarra'] = $infP['codigoBarra'];
|
||||
$res['producto'] = $infP['modelo'];
|
||||
|
||||
$proveedor->setProveedorId($infP['proveedorId']);
|
||||
$res['proveedor'] = $proveedor->GetNameById();
|
||||
|
||||
$productos[] = $res;
|
||||
}
|
||||
|
||||
$sucursal->setSucursalId($info['sucursalId']);
|
||||
$info['sucursal'] = urldecode($sucursal->GetNameById());
|
||||
|
||||
$info['fecha'] = date('d-m-Y H:i:s', strtotime($info['fecha']));
|
||||
|
||||
$smarty->assign('info',$info);
|
||||
$smarty->assign('invWizardId',$invWizardId);
|
||||
$smarty->assign('productos',$productos);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user