Home Forums Support did something change recently with currency formatting?

This topic contains 13 replies, has 3 voices, and was last updated by  Tatos 6 months, 4 weeks ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #14216

    satoristephen
    Participant

    I have a couple of French clients that I bill in Euros, and a month ago (running a slightly earlier version, 4.4.1 of invoice ninja) the amount was properly represented to them everywhere in the Invoice Ninja interface and on the PDF invoice as:

    1.400,00 € (that is one thousand four hundred euros and zero euro cents, with the euro symbol after a space and at the end)

    But today I issued a new invoice to my other French client with the same settings (Euro currency, French langage) while on updated 4.4.3 and it is suddenly looking like this everywhere:

    €1,600.00 (that is one thousand six hundred euros and zero euro cents, with the euro symbol at the beginning with no space after)

    Is there some reason this might have changed or some way to set the proper formatting for my French clients?

    Thanks!

    #14217

    Hillel Coren
    Keymaster

    I’m not sure it’s likely that something changed in the app, minor releases should only include bug fixes.

    Is it possible the country isn’t set for the client? We use the country to determine the localization settings.

    #14219

    satoristephen
    Participant

    The country is definitely set. Can you tell me where the currency formatting settings for each language are stored? I can check there and manually edit them I guess. Thanks!

    #14220

    Hillel Coren
    Keymaster

    We set the per country settings here, it looks like the app should already be placing the currency symbol at the end for French clients.

    https://github.com/invoiceninja/invoiceninja/blob/master/database/seeds/CountriesSeeder.php#L86

    #14221

    satoristephen
    Participant

    Well this is very strange. In each of my French clients I have currency dropdown set to “Euro” and Language set to “French” (not “French – Canada” btw) and in every invoice I create for any of them, the formatting is not what it what a month ago. The currency symbol is placed before the amount, and the separators are wrong (comma and period should be reversed). Any other ideas? I have verified that my CountriesSeeder.php file looks like yours linked to above btw.

    #14222

    Hillel Coren
    Keymaster

    You said it in your earlier comment but not this one, is the county (not language) set to France?

    #14223

    satoristephen
    Participant

    ah!!! that was it! I had the language and currency set, but not the COUNTRY in the address fields part. THANK YOU!! (And sorry to be such an idiot :))

    #14224

    Hillel Coren
    Keymaster

    Glad to hear it’s working!

    #17821

    Tatos
    Participant

    Hello,
    I’m a new french user of InvoiceNinja.
    I have clients in Martinique.
    Martinique and Guadeloupe are French islands.
    But, the first client I just recorded in Martinique is left with the sign € before the amount rather than after …

    I tried to add these lines to the CountriesSeeder.php file:
    ‘MQ’ => [// Martinique
                     ‘swap_postal_code’ => true,
                     ‘swap_currency_symbol’ => true,
                 ]

    But, that does not work.
    Can you tell me how to correctly display the amounts for my clients in Martinique?

    Thank you in advance. and sorry for my bad english…

    #17822

    Hillel Coren
    Keymaster

    Is the client’s country set?

    #17823

    Tatos
    Participant

    Yes, set : Martinique

    #17824

    Tatos
    Participant

    For my french clients, no problem with postal code and currency symbol

    • This reply was modified 6 months, 4 weeks ago by  Tatos.
    #17828

    Hillel Coren
    Keymaster

    Try loading /update (or /public/update) for the change to CountriesSeeder to be applied.

    #17829

    Tatos
    Participant

    Yes ! Thanks a lot !
    It works.
    Thank you for your responsiveness and especially this day of Eve. I did not expect so much!

    • This reply was modified 6 months, 4 weeks ago by  Tatos.
Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.

Posted in: