CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Wrong values when change localization
Pages: [1]

Author Topic: Wrong values when change localization  (Read 2279 times)

fsoares

  • Guest
Wrong values when change localization
May 16, 2009, 11:29:14 pm
Localization: English(US)
When use an contribution page with a value of 10.00.  An invoice with value equal to 10.00 is generated.

But...

Localization: Portuguese(Brazilian)
When use the same contribution page with a value of 10.00. An invoice with value equal to 1000.00 is generated.

I have made a new payment processor integration for Brazilian PagSeguro to CiviCRM. Initially I suspected that I made an error in integration but I see in IPN file the value of "$contribution->total_amount" returning 1000.00 when localization is set for Portuguese(Brazilian). I take a look in database and the value is saved incorrectly as 1000.00.
If I change localization set to "English(US)", without change anything more, and do again the operation all things are correct.

Is a bug in CiviCRM Localization? Can anyone help?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Wrong values when change localization
May 17, 2009, 05:08:55 pm

is this when you are doing an online or offline transaction? Can you try to reproduce the same issue on demo.

In portuguese (brazil) is 10.00 == thousand or ten (in some languages the comma and dot are interchanged with money)

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

fsoares

  • Guest
Re: Wrong values when change localization
May 29, 2009, 11:15:54 pm
Hi,

This is in online trasaction but I think affect both.

In English (USA) 10 dollars is writed as 10.00

In Portuguese (Brazilian) 10 reals is writed as 10,00. So thousands separator is the point (.) and decimals separator is the comma (,).

As commented in http://issues.civicrm.org/jira/browse/CRM-4038?focusedCommentId=26572&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_26572 the change of "Monetary Locale" produce no effect for this issue.

Is samme case from http://issues.civicrm.org/jira/browse/CRM-4038 but in contribution pages.

-With "Default Language = English (USA)" all it´s OK.

-With "Default Language = Portuguese (Brazilian)" have the issue.

Thanks

PS: Sorry the time to respond... lacked enable reply notification. I made now!

fsoares

  • Guest
Re: Wrong values when change localization
May 29, 2009, 11:24:39 pm
Hi,

I upgraded to CiviCRM 2.2.5 now and the issue persists.

I think the contribution pages is not applying the monetary locale to values generated.

Thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Wrong values when change localization

This forum was archived on 2017-11-26.