Hi, I was originally running SuiteCRM 7.x offline in an XAMPP server and it ran fine and would show the % probabilities for sales opportunities and automatically populate based on the sales stage. I later installed a clean fresh copy of SuiteCRM 8.2.4 on an apache server hosted on a website. I reimported the existing opportunities, accounts, leads, etc. and all looked good. Those also showed the sales probabilities correctly. However, for creating new opportunities, it would not link the sales probability to the sales stage, and it would leave the field at 0%. Thinking a new version may resolve this issues, today I upgraded from 8.2.4 to 8.3.0. The upgrade went fine. However, the issue still remains.
I have checked the sales probability and sales stage dom and nothing seems out of place there. Screenshots attached.
I migrated to 8.7.1 and the issue is still here… I seleted a sales stage but the probability field is always empty. Any idea?.. I saw the code @pgr but not work.
It’s ok in the studio… the dropdown sales_probability_dom is ok, and the code inside the opportunity.php is ok:
//if probablity isn't set, set it based on the sales stage
if (!isset($this->probability) && !empty($this->sales_stage)) {
$prob_arr = $app_list_strings['sales_probability_dom'];
if (isset($prob_arr[$this->sales_stage])) {
$this->probability = $prob_arr[$this->sales_stage];
}
}
When you create the opportunity, you select a sales stage, you left empty the probability field and save… the probability should be filled with information in the sales_probability_dom dropdown, but doesn´t work.