Files
ventas_php/modules/inventario-wizprods.php

36 lines
865 B
PHP
Executable File

<?php
$empresa->AuthUser();
$invWizardId = intval($_GET['id']);
$inventario->setInvWizardId($invWizardId);
$info = $inventario->InfoWizard();
$resProductos = $inventario->EnumWizardProds();
$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);
?>