[ http://mifosforge.jira.com/browse/MIFOS-5077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Chudy reopened MIFOS-5077: --------------------------------- Validation should only allows as many digits before decimal as it is configured in custom properties file. Now, if AccountingRules.DigitsBeforeDecimal=14, Mifos allows to enter numbers with 17 digits before decimal which is wrong. Moreover, validation message in this case should be: "The Recommended amount for deposit is invalid because the number of digits before the decimal separator exceeds the allowed number 14" instead of "The mandatory deposit amount is invalid because the value cannot be greater than 99999999999999999.99.". > Page with Stack trace appears after entering amount with big number into > 'Recommended amount for deposit' field and trying to create new Savings > account > -------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: MIFOS-5077 > URL: http://mifosforge.jira.com/browse/MIFOS-5077 > Project: mifos > Issue Type: Bug > Components: Savings Account > Affects Versions: Release 2.2 > Reporter: Lukasz Chudy > Assignee: Rafal Lewandowski > Fix For: Release 2.2.1 > > Attachments: StackTrace.txt > > > During the Savings account creation flow, after entering amount with big > number into 'Recommended amount for deposit' field and then after clicking > Submit button, page with stack trace appears. > Repro: > 1. Login to Mifos. > 2. Click on 'Create new Savings account' link. > 3. Select any client and savings product. > 4. On 'Enter Savings account information' page, fill all necessary fields and > enter amount into 'Recommended amount for deposit' field: > "10000000000000000000000000000000000" > 5. Click on Continue button. > 6. Click Preview button. > 7. Click Submit button. > Expected result: > There should be validation for the number of digits before decimal. > Actual result: > Page with stack trace appears. See attached file. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: http://mifosforge.jira.com/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Mifos-issues mailing list Mifos-issues@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mifos-issues