Results 1 to 6 of 6

Thread: Wrong display in listview

  1. #1
    Iggby's Avatar
    Iggby is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Huntingtonton Beach, Ca
    Posts
    101

    Default Wrong display in listview

    After upgrading from 5.0 to 5.2 I have encountered a problem with the display in the list view of the opportunities modules. The data displayed has the wrong decimal placement.

    Ex.

    In list view the fee field shows $14.00 where the corresponding field in detail view shows 14,958.00 and 1498 in the database.

    This was displaying just fine prior to the upgrade to 5.2.

    Any ideas why this would display this way?

    I noticed also that the field displays correctly in a home page dashlet 14,958.00....could the currency formatting be messing it up? There is another number formatted in the listview to display as currency and it displays correctly.
    Last edited by Iggby; 2009-01-08 at 11:51 PM.
    Development Setup
    Sugar 5.0.0c
    Fedora Core 7
    Plesk 8.3
    PHP 5.2.4-1.fc7
    MySQL 5.0.45.fc7

  2. #2
    Iggby's Avatar
    Iggby is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Huntingtonton Beach, Ca
    Posts
    101

    Default Re: Wrong display in listview

    No ideas? Has anyone else had a similar problem when updating to 5.2?
    Development Setup
    Sugar 5.0.0c
    Fedora Core 7
    Plesk 8.3
    PHP 5.2.4-1.fc7
    MySQL 5.0.45.fc7

  3. #3
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Wrong display in listview

    Yes, showing the same w/ "," instead of "." symbols for decimal separator.

    With the default settings it works perfectly.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  4. #4
    jasv is offline Sugar Community Member
    Join Date
    Sep 2008
    Posts
    98

    Default Re: Wrong display in listview

    Hi I'm having the same problem...

    Anyone can help us to resolve this.... Thanks in advance...

  5. #5
    Iggby's Avatar
    Iggby is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Huntingtonton Beach, Ca
    Posts
    101

    Default Re: Wrong display in listview

    I don't think displaying the data incorrectly by putting commas where decimals go is the best answer, so I am assuming either I am misunderstanding something or my post is not being understood. I am going to attemp to attach before and after shots of what I am talking about.

    The first picture is a before (version 5.0.0c) and the second is after upgrading to 5.2. No other changes were made to the program files.
    Attached Images Attached Images   
    Development Setup
    Sugar 5.0.0c
    Fedora Core 7
    Plesk 8.3
    PHP 5.2.4-1.fc7
    MySQL 5.0.45.fc7

  6. #6
    maggix is offline Member
    Join Date
    Sep 2008
    Posts
    7

    Default Re: Wrong display in listview

    Hello, I had a similar problem: using "." (dot) as separator for thousands and "," (comma) as decimal separator, all vaules were multiplied * 100 in the listview (and in the amount_usdollar field in the DB).

    What I did is remove the unformat_field from the file SaveOverload.php in /modules/opportunities/

    in this line:

    PHP Code:
    $focus->amount_usdollar $currency->convertToDollar(unformat_number ($focus->amount)); 
    change it to

    PHP Code:
    $focus->amount_usdollar $currency->convertToDollar($focus->amount); 
    This is because the field already gets unformatted in precedence, in the unformat_all_fields function


    Is there a way to notify developers of this ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ListView 'Contact' field is linked to wrong record
    By leenwebb in forum Developer Help
    Replies: 4
    Last Post: 2007-02-19, 05:41 PM
  2. Display wrong values on dashboard
    By simon2112b in forum General Discussion
    Replies: 1
    Last Post: 2006-04-13, 03:29 PM
  3. Replies: 2
    Last Post: 2005-09-27, 09:40 PM
  4. Bug: Display of call duration wrong
    By borton in forum Feature Requests
    Replies: 2
    Last Post: 2004-11-04, 12:21 AM

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
  •