Results 1 to 3 of 3

Thread: Decimal Field - Formating Problems

  1. #1
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Decimal Field - Formating Problems

    Hello, I have a decimal field (float 18,2) in a custom module that is adding 000 at the end of its number after I execute an action. I am using "." (dot) as separator for thousands and "," (comma) as decimal separator. How do I enforce that this especific field should ignore format_number?

    Thanks in advance
    Regards,

    SugarCRM CE v.5.2.0c
    Windows platform
    MySQL v.5.0.37
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

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

    Default Re: Decimal Field - Formating Problems

    Developers go here
    Businesses go there (Dutch)

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

  3. #3
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Re: Decimal Field - Formating Problems

    The solution was this one: http://www.sugarcrm.com/forums/showt...light=currency

    Posted by Andopes

    Hi Qamrun

    My bad!

    I did not send you the full piece of code!

    PHP Code:
    $dictionary['Account']['fields']['field_name']['disable_num_format'] = true;
    But this code works only for built in fields.

    Cheers
    Regards,

    SugarCRM CE v.5.2.0c
    Windows platform
    MySQL v.5.0.37
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formating the Phone Number Field
    By dhavey in forum Help
    Replies: 2
    Last Post: 2009-10-02, 06:59 PM
  2. Field level decimal precision
    By Iggby in forum Feature Requests
    Replies: 21
    Last Post: 2009-03-31, 08:04 AM
  3. Replies: 0
    Last Post: 2009-01-28, 03:11 PM
  4. Date Formating
    By cpscdave in forum Developer Help
    Replies: 3
    Last Post: 2008-01-30, 02:38 PM
  5. Decimal Point
    By creaware in forum Help
    Replies: 1
    Last Post: 2007-01-31, 06:33 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
  •