martes, 1 de abril de 2014

Afinar búsquedas rápidas en Vtiger 6.0

La búsqueda rápida de Vtiger 6.0 no es posible realizarla con algo que no sea el nombre o apellido, para solucionar este problema ejecutar este código SQL.

UPDATE vtiger_contactdetails as origen, vtiger_crmentity as destino
SET destino.label = CONCAT(origen.firstname," ",origen.lastname,” ”,origen.phone,” ” ,origen.email)
WHERE destino.crmid = origen.contactid
AND destino.setype = "Contacts";

UPDATE vtiger_leaddetails as origen, vtiger_crmentity as destino, vtiger_leadaddress as aux
SET destino.label = CONCAT(origen.firstname," ",origen.lastname,” ”,aux.phone,” ” ,aux.mobile,” “,origen.email)
WHERE destino.crmid = origen.leadid 
AND aux.leadaddressid = origen.leadid
AND destino.setype = "Leads";

No hay comentarios:

Publicar un comentario