Number formatting

Mario
Mario
Offline
0
Hi,

In Belgium we use no thousands separator or if we do, we use a space. For decimal separator, we use a comma (,).
As IM does not allow 'nothing' to be used, I entered a space. I'm now witnesing hyphenation of amounts in the dashboard view in the back-end.

4 374,32€

...is displayed as...

4
374,32€

That is: spread over 2 lines.

I would prefer to be able to leave the thousand separator blank so that amounts are being displayed as 4374,32€ if that is the most easy solution.
How do I do this ?

Accepted Answer

Thursday, December 04 2014, 05:35 PM - #Permalink
0
ok please try again now, there was a small other modification needed which I forgot ;)
  • Mario
    more than a month ago
    Hi Germinal,

    I have the same going on for my next implementation. The amounts are again being hyphenated. Can you tell me about the small other modification or do you need access to this site ?

    Thanks,
    Mario
  • Germinal Camps
    more than a month ago
    yes, the file you need to keep is /components/com_invoices/helpers/helpers.php
  • Mario
    more than a month ago
    Thanks !

    I removed the comma on line 28. Next to that I cleared the thousands separator in the IM settings (had a space before).
    The combination of these two resolved the hyphenation issue.
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Tuesday, December 02 2014, 05:18 PM - #Permalink
    0
    Hello,

    the easiest way of doing this is:
    - open file /administrator/components/com_invoices/config.xml and locate a tag called "thousands" (it's in XML format. if you get lost, let me know and I'll help you)
    - just change its default vaule, which currently is default="," to default=""
    The reply is currently minimized Show
  • Accepted Answer

    Mario
    Mario
    Offline
    Wednesday, December 03 2014, 11:23 PM - #Permalink
    0
    Hi Germinal,

    I have changed the value in the config.xml file.
    In the back-end in the options menu, I removed the space.
    When I refresh my screen, the values change from:

    4 374,32€

    to

    4,374,32€

    So even though I removed the comma as default value, it re-appeared after the suggested changes.
    • Germinal Camps
      more than a month ago
      that's weird. can you send me FTP access at support@ joomlathat.com so I can take a look?
    The reply is currently minimized Show
  • Accepted Answer

    Mario
    Mario
    Offline
    Thursday, December 04 2014, 08:00 PM - #Permalink
    0
    Perfect !

    They are now displayed as 4374,32€.
    No hyphenation and no double comma's any more.

    Thanks ! Another one resolved !
    The reply is currently minimized Show
Your Reply