Results 1 to 3 of 3

Thread: Currency Fields in Detail View to show €19,000.45

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

    Default Currency Fields in Detail View to show €19,000.45

    Hi,

    I have fields of type currency but in the detail view I want them to show €23,878.45 instead of 23878.45

    Is this possible

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

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

    Default Re: Currency Fields in Detail View to show €19,000.45

    HI,

    The detail view will now show the numbers formatted currently i.e.

    45123456.2100 will show as 45,123,456.21

    Now I just what to be able to include a € sign before the number in the detail view? I imagine thatI should be able to do this using some customCode in the detailviewdefs.php.

    Any takers on a possible solution?

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  3. #3
    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 in Detail View to show €19,000.45

    You can create a custom controller and implement the method action_detailview in order to format_number accordingly.

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Detail view not show
    By nanduruchi in forum Developer Help
    Replies: 1
    Last Post: 2010-08-31, 11:32 AM
  2. Data not save & not show detail view
    By nanduruchi in forum Developer Help
    Replies: 0
    Last Post: 2010-08-30, 09:47 AM
  3. Extend the detail and edit view to show non-bean fields
    By chilyroll in forum Developer Help
    Replies: 1
    Last Post: 2010-07-14, 01:42 PM
  4. save doesnot show any value in the detail view
    By shamimwilson in forum Developer Help
    Replies: 5
    Last Post: 2009-08-24, 11:41 AM
  5. Replies: 0
    Last Post: 2006-05-04, 01:27 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
  •