Details
Description
Using the localization pt-BR:
I created a event with a value like "0,50" (note, R$ 0,50 = US$ 0.50) and values are correctly showed in Event configuration page.
But when a user made a registration to this event the payment processor inform a value amount error...
I verified that the amount received from payment processor is "0,50", which is correct, but the payment processor value amount verification claim that the value must be "5,00" (0,50 x 10).
So I looked at database and discovered that the value amount (of event) stored at database table "civicrm_contribution" in field "total_amount" is incorrect.
Is a conversion problem that multiplies the original value by 10 on internationalized instalations of CiviCRM.
Please see these references for guidance:
-http://issues.civicrm.org/jira/browse/CRM-6112
I tested this with versions 2.2.9, 3.0 and 3.1.5 and all versions have this issue so I suggest a backporting of the solution to all prior versions until 2.2.9, in wich was applied the correction for http://issues.civicrm.org/jira/browse/CRM-4038.
Thanks