Amount field at a contribution has a max length of 14 characters
With the default localization settings (. as a decimal separator and , as a thousand separator) it is not possible to enter an amount such as 654,321.987654321
The amount field has a max length of 14 characters so 654,321.987654321 becomes 654,321.987654
How to reproduce
- First check your localization settings
- Go to a contact and click under actions --> Add Contribution
- Enter the amount of 654,321.987654321
Proposed solution
Remove the max length constraint on the input element and rather validate the input on whether it is a correct amount.
Also on
On the edit/add membership type screen the minimum fee is also limited to 14 characters.
Environment
dmaster.demo.civicrm.org Drupal 7 CiviCRM version 5.36.alpha1