setClienteId($clienteId); $infC = $cliente->Info(); $comprobantes = $cliente->EnumFacturasByClte(); $items = array(); foreach($comprobantes['items'] as $res){ $res['rfc'] = $infC['rfc']; $res['nombre'] = $infC['nombre']; $venta->setComprobanteId($res['comprobanteId']); $res['ventaId'] = $venta->GetTicketByComprobanteId(); $items[] = $res; } $comprobantes['items'] = $items; }//if $smarty->assign('comprobantes',$comprobantes); ?>