This PR fixes NaN is assigned when setting a formatted amount more than 4 digits.
Before
When assign formatted amount more than 4 digit, NaN was assigned.
After
Correct formatted amount is assigned.
Technical Details
Since the totalAmount has already been formatted, calling CRM.formatMoney() to format amount again, it returns NaN when passing the amount that more than 999
Overview
This PR fixes NaN is assigned when setting a formatted amount more than 4 digits.
Before
When assign formatted amount more than 4 digit, NaN was assigned.
After
Correct formatted amount is assigned.
Technical Details
Since the totalAmount has already been formatted, calling CRM.formatMoney() to format amount again, it returns NaN when passing the amount that more than 999