Open ShvetaJain opened 12 years ago
Hi, I am using rails console to repro this.
Connect to sugarCrm Trial:- scrm = SugarCRM.connect('https://trial.sugarcrm.com/lrzjat3352', 'will', 'will')
Opportunity GET (I have set the opportunity currency to US Dollars, i get currency_name: "US Dollars", currency_symbol: "$".)
my_o = scrm::Opportunity.find_by_name('Opp 1') => #<SugarCRM::Namespace0::Opportunity account_id: nil, account_name: "Florida Branch", amount: "54321", amount_usdollar: "54321", assigned_user_id: "seed_will_id", assigned_user_name: "will", campaign_id: "", campaign_name: "", commission_c: "5.00", created_by: "seed_will_id", created_by_name: "will", currency_id: "-99", currency_name: "US Dollars", currency_symbol: "$", date_closed: "2012-09-28", date_entered: "2012-09-20 13:54:00", date_modified: "2012-09-20 13:54:00", deleted: false, description: "", disc_complete_c: "", discoveryfive_c: "", discoveryfour_c: "", discoveryone_c: "", discoverysix_c: "^^", discoverythree_c: false, discoverytwo_c: false, forecast_c: "", id: "77d10f46-17f7-1653-4b06-505b1f91b0a1", lead_source: "", lost_one_c: "", lost_reason_c: "", lost_reason_other_c: "", lost_subreason_c: "1a", lostoneb_c: "", lostthree_c: false, manager_review_c: "", modified_by_name: "will", modified_user_id: "seed_will_id", name: "Opp 1", next_step: "", opportunity_type: "", probability: 30, sales_stage: "Value Proposition", solution_complete_c: "", solution_warning_c: nil, solutionfive_c: false, solutionfour_c: "", solutionone_c: "", solutionthree_c: "^^", solutiontwo_c: "", team_count: "1", team_id: "East", team_name: "East", team_set_id: "East", totalcommission_c: "", wonfour_c: "2013-09-20", wonone_c: "", wonthree_c: false, wontwo_c: "">
Opportunity GET (When the currency is changed to UK POUND, i get currency_name: "", currency_symbol: "")
my_o = scrm::Opportunity.find_by_name('Opp 1') => #<SugarCRM::Namespace0::Opportunity account_id: nil, account_name: "Florida Branch", amount: "36395.07", amount_usdollar: "54321", assigned_user_id: "seed_will_id", assigned_user_name: "will", campaign_id: "", campaign_name: "", commission_c: "5.00", created_by: "seed_will_id", created_by_name: "will", currency_id: "13d4cc9f-dd21-e25c-bb1a-4c192b3dd3f7", currency_name: "", currency_symbol: "", date_closed: "2012-09-28", date_entered: "2012-09-20 13:54:00", date_modified: "2012-09-20 13:56:49", deleted: false, description: "", disc_complete_c: "", discoveryfive_c: "", discoveryfour_c: "", discoveryone_c: "", discoverysix_c: "^^", discoverythree_c: false, discoverytwo_c: false, forecast_c: "", id: "77d10f46-17f7-1653-4b06-505b1f91b0a1", lead_source: "", lost_one_c: "", lost_reason_c: "", lost_reason_other_c: "", lost_subreason_c: "1a", lostoneb_c: "", lostthree_c: false, manager_review_c: "", modified_by_name: "will", modified_user_id: "seed_will_id", name: "Opp 1", next_step: "", opportunity_type: "", probability: 30, sales_stage: "Value Proposition", solution_complete_c: "", solution_warning_c: nil, solutionfive_c: false, solutionfour_c: "", solutionone_c: "", solutionthree_c: "^^", solutiontwo_c: "", team_count: "1", team_id: "East", team_name: "East", team_set_id: "East", totalcommission_c: "", wonfour_c: "2013-09-20", wonone_c: "", wonthree_c: false, wontwo_c: "">
Can you post the code you are using, so I can recreate this?