Jump to content

Currency Format Issue


JayBird

Recommended Posts

I am using WHMCS version 5.0.3.

 

I am setting up a currency, and there seems to be a format missing from the dropdown. I can pick:

 

1234.56

1,234.56

1.234,56 or

1,234

 

BUT NOT

 

1.234

 

I ran into this issue last year on a project and offered the options as:

 

Thousands separator: , or . and

Decimal separator: , or . and

Show trailing 0's: Yes or no

 

These three options, along with the currency Prefix and Suffix, cover every possible currency display scenario I could think of. As it is now, the issue I am running into is this:

 

WHMCS displays 57.750,00,- when it should display 57.750,-.

 

I do not consider this a feature request as an attempt was made to address multiple currency formats; however, not all possible formats were accounted for.

 

As a side note, I also added another option in the coding I did, which was an option that allowed the admin to choose whether or not to display the prefix or suffix values for the currency at various locations in the application. This gave a bit more flexibility for those that needed it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated