Originally posted by Exsto
View Post
thanks
namespace Espo\Custom\Services;
use Espo\ORM\Entity;
class Lead extends \Espo\Modules\Crm\Services\Lead
{
protected function getDuplicateWhereClause(Entity $entity, $data)
{
return array('partita_iva' => $entity->get('partita_iva'));
}
}
namespace Espo\Custom\Services;
use Espo\ORM\Entity;
class Lead extends \Espo\Modules\Crm\Services\Lead
{
protected function getDuplicateWhereClause(Entity $entity, $data)
{
return array('vat' => $entity->get('vat'));
}
}
Leave a comment: