Showing trailing zero for Rate Fees because of Double to String Conversion
--------------------------------------------------------------------------

                 Key: MIFOS-2716
                 URL: http://mifosforge.jira.com/browse/MIFOS-2716
             Project: mifos
          Issue Type: Improvement
    Affects Versions: Unscheduled
            Reporter: Udai Gupta
            Assignee: mifosdeveloperqueue
             Fix For: Unscheduled


Rate Fee like 2% is shown as 2.0 in UI when
 - Applying Charges (on  Loan)
 - Creating Loan Account and adding a Rate Fee (for both Default and Additional 
Fees)

This occurs because Rate Fee (and its View) hold the rate percentage in double 
data type. When a double is converted to a string it adds .0 for whole number 
eg. 2% will be converted to 2.0.

Solution would be to use formating for double to string conversion. Or use 
BigDecimal for Rate and add the BigDecimalFormat to BigDecimal to string 
conversion like Money.

Right behavior: show 2 for a 2% Rate fee in UI.  


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to