Results 1 to 8 of 8

Thread: Currency format - how to change it?

  1. #1
    Spinaker is offline Senior Member
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    96

    Default Currency format - how to change it?

    Hello.
    Can someone help me with the currency format? I want to have a format for example: 100.000,00 PLN (what means one hundred thousands PLN and zero GR. Now I have something like on attachement - currency symbol in the front and then value in "k" on the end... In my language (PL) it is not acceptable...
    Thank you all in advance.
    Regards!
    Attached Images Attached Images  

  2. #2
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: Currency format - how to change it?

    Hi! The K you can change on the file \sugarcrm\include\languages\<youlanguage>.lang.php

    'LBL_THOUSANDS_SYMBOL' => 'K',
    chage it for what you need,
    This chart is a custom chart? wich one is it?
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  3. #3
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: Currency format - how to change it?

    This chart is divided by 1000, you want to remove it?
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  4. #4
    Spinaker is offline Senior Member
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    96

    Default Re: Currency format - how to change it?

    Exactly, I want to remove the dividing - I want simple value
    PS - this is a standard chart - opps by lead source - no customization
    Last edited by Spinaker; 2009-06-01 at 06:11 PM.

  5. #5
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: Currency format - how to change it?

    ok this you have to do on the dashlet code.
    try changing this file:

    /sugarcrm/modules/Charts/Dashlets/OpportunitiesByLeadSourceDashlet/OpportunitiesByLeadSourceDashlet.php
    near line 104 on the constructQuery function
    where is this:
    Code:
       $query = "SELECT lead_source,sum(amount_usdollar/1000) as total,count(*) as opp_count ".
                        "FROM opportunities ";
    Change to:

    Code:
     $query = "SELECT lead_source,sum(amount_usdollar) as total,count(*) as opp_count ".
                        "FROM opportunities ";
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  6. #6
    Spinaker is offline Senior Member
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    96

    Default Re: Currency format - how to change it?

    And what with items which are not a dashlets? I mean all the numbers in for example opportunity list view? Here I have a currency symbol before the numbers - i want to have it behind...

    Edit:
    The best in my language is, where the value is show in this format (one million dollars): 1.000.000,00 $
    So I want to make something like 1.000.000,00 PLN for my language...
    Last edited by Spinaker; 2009-06-01 at 06:32 PM.

  7. #7
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: Currency format - how to change it?

    well in Admin -> System Locale Settings you can change the Symbol from $ to PLN but to put it behind i guess you need to build a view.list.php for the module Opportunities.
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  8. #8
    Spinaker is offline Senior Member
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    96

    Default Re: Currency format - how to change it?

    I have changed it, but I have still no 1000s separator in dashlets (dot . ) and unfortunetly i don't know how to make a custom view.list.php

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Currency format issues
    By rmac in forum Help
    Replies: 3
    Last Post: 2010-01-05, 02:51 PM
  2. Currency format problem - Sugar 4.2.0
    By sutfra in forum Help
    Replies: 1
    Last Post: 2009-05-12, 10:30 AM
  3. Currency format on custom Subpanel
    By jasv in forum Developer Help
    Replies: 4
    Last Post: 2009-02-05, 06:49 PM
  4. Replies: 6
    Last Post: 2005-05-12, 10:11 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
  •