Results 1 to 8 of 8

Thread: ListView shows only default currency

  1. #1
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Default ListView shows only default currency

    Hi there,

    I have some custom modules and using a currency fields, but my problem appears in the Opportunity module too. My default currency is EUR and I've added 3 more currencies. When create an opportunity with currency different from the default in ListView I see the default currency (EUR). In DetailView it shows the correct symbol. Do I have to write some custom scripts for ListView or it is a bug?

    Sugar CE 5.2.0h

  2. #2
    spthibault is offline Junior Member
    Join Date
    Jul 2009
    Posts
    2

    Default Re: ListView shows only default currency

    I'm having the same problem. Also, when I try to order the list by currency the result is always an empty list.

  3. #3
    goko is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    Stockholm, Sweden
    Posts
    69

    Default Re: ListView shows only default currency

    The thing with the varying currencies is a feature, not a bug .

    Opportunities amounts are very tricky...

    First some background:
    When you create an opportunity you select a currency, which is saved in opportunities.currency_id, and the amount you enter is saved in opportunities.amount.
    When you save the record Sugar calculates the amount in the system currency based on the currency rate at that time, and saves that in the opportunities.amount_usdollar field.
    (amount_usdollar is a very misleading column name, since the system currency can be any currency.)


    Then we come to what's displayed where:
    An opportunities amount is shown in different currencies depending on the view.

    ListView and Reports shows the amounts in the current users currency.

    EditView and DetailView shows the amount that was originally entered.


    If you deal with currencies where the rates can vary over time, this can lead to some strange consequences because Sugar has choosen to make the opportunities.amount_usdollar the "master" when calculating the amounts shown in the ListView and Reports.

    I show you what I mean in a few steps:
    1. if you don't have more than one currency, add one (Admin->Currencies)
    2. create an opportunity with the amount in a non-system default currency
    3. now set your users default currency to the currency you used for the new opportunity (My Account->Edit) and have a look at Opportunities Listview and detailview - nothing strange sofar
    4. change the conversion_rate for the opportunities currency (Admin->Currencies)
    5. have a look at Opportunities Listview and detailview - Ooops!! The amount in Listview differs from the amount in DetailView even though it's the same currency!!

    This strange behaviour is reported as bug 28793. Sugar thinks its a feature request (target 5.5.2)

  4. #4
    maloner's Avatar
    maloner is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Westmeath & Dublin
    Posts
    95

    Default Re: ListView shows only default currency

    Hi goko,

    We are currently experiencing the same problem on 5.5. Did you get anywhere with this?

    Thanks,

    John.
    John Malone
    Provident CRM Ltd
    SugarCRM Implementation Partner - Ireland
    http://www.providentcrm.ie/sugar-crm.html
    email: john@providentcrm.ie
    ph: 01-4403685

    Checkout our Monthly meetup: http://lampsoftware.meetup.com/9/
    SugarCRM Ireland Linked-In Group: http://www.linkedin.com/groups?gid=884327
    SugarCRM UK Linked-In Group: http://www.linkedin.com/groups?gid=1813385

  5. #5
    aureh12 is offline Sugar Community Member
    Join Date
    Feb 2009
    Posts
    96

    Default Re: ListView shows only default currency

    Custom module on 5.5 with a currency field.

    Subpanels display: 1000$
    DetailView display the right value: 1000€

    How to fix the subpanel ?

    Thanks for your help
    Last edited by aureh12; 2010-04-09 at 12:52 PM.

  6. #6
    aureh12 is offline Sugar Community Member
    Join Date
    Feb 2009
    Posts
    96

    Default Re: ListView shows only default currency

    As I said, I have a custom module.
    I created price (currency) and studio created automatically the currency_id.

    fields:
    price
    currency_id

    When I display the subpanel, the $bean->currency_id is empty for all the records.
    As a result, all my records in the subpanel are displaying $ (default currency)

    DetailView value : €32,00 (good)
    Subpanel value : $32,00

    I populate $bean->currency_id using a the logic_hook process_record and sql query.
    The result is interesting:

    DetailView : €32,00 (good)
    Subpanel value : €24,00
    ListView value: $32,00

    Does anybody know what's going on ?
    Last edited by aureh12; 2010-04-15 at 07:21 AM.

  7. #7
    fagut is offline Junior Member
    Join Date
    Jun 2010
    Posts
    3

    Default Re: ListView shows only default currency

    in subpanel defs, add

    PHP Code:
       'currency_id'=> array(
          
    'usage'=>'query_only',
       ), 
    no need for logic hook.

  8. #8
    wos
    wos is offline Junior Member
    Join Date
    Feb 2011
    Posts
    1

    Default Re: ListView shows only default currency

    Anything new here?

    We have the 6.1.1 version.

    I have three different currencies, and all of them have the us dollar sign in the report list and if I use the print as PDF there are no currency signs.

    Can this be fixed in Admin > Studio?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Currency fields shows too many 0's
    By bstonehill in forum Help
    Replies: 3
    Last Post: 2009-09-29, 11:11 AM
  2. Currency symbol on listview
    By jasv in forum Help
    Replies: 0
    Last Post: 2009-02-11, 08:34 PM
  3. Default Currency
    By cache in forum Help
    Replies: 1
    Last Post: 2006-06-16, 01:33 PM
  4. Default currency
    By inbox in forum Help
    Replies: 1
    Last Post: 2004-11-07, 12:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •