[
http://mifosforge.jira.com/browse/MIFOS-2716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
keithwoodlock updated MIFOS-2716:
---------------------------------
Component/s: Loan Account
> 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
> Components: Loan Account
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues