Page with Stack trace appears after selecting fee of type: '% Loan Amount+Interest' or '% Interest', entering amount with big number and trying to create new Loan account

Description

During the Loan account creation flow, after selecting fee of type: '% Loan Amount+Interest' or '% Interest' and entering amount with big number and then after clicking Submit button, page with stack trace appears.

Repro:
1. Login to Mifos.
2. Click on 'Create new Loan account' link.
3. Select any client and loan product.
4. On 'Enter Loan account information' page, fill all necessary fields, select additional fee of type: '% Loan Amount+Interest' or '% Interest' and enter amount for it: "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 for fees of type: '% Loan Amount+Interest' and '% Interest'.

Actual result:
Page with stack trace appears. See attached file.

Environment

None

Status

Assignee

Rafal Lewandowski

Reporter

Lukasz Chudy

Labels

None

Implementation Priority

None

URL

None

Story Points

None

Team

Core

Scheduled For

None

50% Estimate

None

90% Estimate

None

Deployment

None

Epic

None

Request Type

None

Requestor

None

Number of Support Tickets

None

Customer

None

Notify

None

productboard URL

None

Components

Fix versions

Affects versions

Release 2.2

Priority

Minor
Configure