Results 1 to 5 of 5

Thread: Currency Fields not showing correct values

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Currency Fields not showing correct values

    Hi,

    I created to custom fields in Studio of Type currency for Accounts. I then added both fields to the Detailview and the Editview.
    new_field1_c and new_field2_c

    When I edit a Record and set the following
    new_field1_c to 2500
    new_field2_c to 2250
    Then press save in the detailview they appear as
    new_field1_c 2.00
    new_field2_c 2.00

    The correct values are shown in the DB, and evertime I press Edit the Correct Values are show. I have a created a reports that uses these fields and it too shows the correct values.

    I am on SugarCRM Pro 5.2.0k. Has anyone else seen this happening?

    How do I resolve it.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Currency Fields not showing correct values

    Can you provide the controller.php and view.detail.php for this module, if available? Remember to attach the file in custom folder if available.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Currency Fields not showing correct values

    Hi thanks,

    See the attached file

    Rgds
    Chris
    Attached Files Attached Files
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Currency Fields not showing correct values

    The big deal is the

    PHP Code:
    parent::display(); 
    You have to replace it by


    PHP Code:
    echo $this->dv->display(); 
    Once you had called

    PHP Code:
    $this->dv->process(); 
    The last one format the number fields, and parent::display also try to format it, so it will break the formatted fields.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Currency Fields not showing correct values

    Thank You very much
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2006-07-20, 04:41 PM
  2. Setup not showing correct info
    By magtaf in forum General Discussion
    Replies: 1
    Last Post: 2006-06-01, 10:09 PM
  3. Currency settings and calculated values in graphs
    By infocap in forum General Discussion
    Replies: 3
    Last Post: 2005-02-07, 10:49 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
  •