Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Opportunity mail field
#1
Suppose to create one contact with a wrong mail like pippo@gmail.es
to add an opportunity to this contact.
Later when you will correct the email field in contact changin pippo@gmail.es to pippo@gmail.com in opportunity ther will be the wrong eamil address.
The opportunity.mail field is not editable, the only way to change it, is to reapply the "related to" field.
Perhaps is a better idea to leave editable ( pressing edit button) the potential email field
have a nice day
Lorenzo
Reply
#2
Hi,

I just tried this and had a look at the code. The email is updated on every save of the opportunity, not just the first time. I tried it and the email was updated correctly.

The update happens here:

https://github.com/tsolucio/corebos/blob/master/modules/Emails/evcbrcHandler.php#L42

which is called from the after save event, In case you want to make sure that piece of code is being executed.

Let me know how it goes
Joe
TSolucio
Reply
#3
OK. It works.
The problem was i usually edit the single field in the opportunity, so i don't press edit and save globally.
thaks
Lorenzo
Reply
#4
Yes, we still can't dynamically change the other fields on individual edit. It does change the email value but you can't see the change until you reload the record.
I have that on our to-do list
Joe
TSolucio
Reply
#5
Hi I have same problem.

I selected a new contact, with new email, but system still list the older email in opportunity email field ...

Sad
Ranieri
eCRM Web
Reply
#6
reload the page
Joe
TSolucio
Reply
#7
I don't if I did understand correctly ...

For example, in online demo, I clicked in one opportunity already created.

I click in opportunity - more information - Contacts - edit - and changed email for another domain, for testing reasons

Now, opportunity still shows a older domain ( hotmail ), and contact has a new domain ( gmail )

What I did wrong?

See at online demo
http://corebos.org/demos/corebos/index.php?action=DetailView&module=Potentials&record=5138&parenttab=ptab
Ranieri
eCRM Web
Reply
#8
The email on the opportunity is the main email of the account or contact DIRECTLY related to the record.
Joe
TSolucio
Reply
#9
ok, but my understand when you talk about directly related, is when I associate new contact a opportunity, for me, this is or main relation.

See not is a "right" or "wrong" here, but the form of understanding.

Look my scenario

At first moment, when I create a opportunity I have one person for talking in company.

But in sales developement, I identify a real decisor for my opportunity.

In my mind, at this moment, I should click contact, and add new contact at opportunity, and this new contact is "the guy".

However, system still look for a email account, or data in account ( because my process in b2b ).

I don't understand very well, why there a relation for contact in opportunity, if not to set a new "master contact"
Ranieri
eCRM Web
Reply
#10
The way it is designed is that the person you are talking to is the one related in the "related to" field on the record. All the other contacts in the related list are stakeholders.

If you want to implement another logic you will have to program it. You can use the corebos.entity.link.after event to set the field value according to your particular business logic and eliminate the hard-coded logic (which we will do in the near future now that we can do that with workflows).
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)