Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I assign currency to an Opportunity. But currency_name is always empty , for currency set as Euro or Pound or Australian Dollar. #83

Open
ShvetaJain opened this issue Sep 6, 2012 · 2 comments

Comments

@ShvetaJain
Copy link

No description provided.

@chicks
Copy link
Owner

chicks commented Sep 13, 2012

Can you post the code you are using, so I can recreate this?

@ShvetaJain
Copy link
Author

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: "">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants