[
http://mifosforge.jira.com/browse/MIFOS-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56846#action_56846
]
Udai Gupta commented on MIFOS-2709:
-----------------------------------
Just explaining my above statement: Rate Fees has no relation with
digitsafterdecimal = 0, because Rate (whether it is Periodic or Upfront) is a
percentage like interest. Rate fees uses digitsAfterDecimalForInterest
property, Hence it was just the validation which was wrong and checking Rate
using digitsafterdecimal (using the same logic as of Amount Fee validation).
Separation of Rate Fee validation and Amount Fee validation resolved this
issue. However the .0 will still be displayed because it is a deeper issue of
"what data type(double) is being used for Rate" and "How the string formatting
is being done for double".
The fix should be able to maintain the previous behaviors (i.e. having the
trailing zero) and remove the hassle for the user of removing .0 to get pass
the validation.
> Have to remove .0 in periodic loan fee when attaching to loan account in loan
> account creation with digitsafterdecimal = 0
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: MIFOS-2709
> URL: http://mifosforge.jira.com/browse/MIFOS-2709
> Project: mifos
> Issue Type: Bug
> Components: Loan Account
> Affects Versions: Gazelle C
> Reporter: Kay Chau
> Assignee: Udai Gupta
> Fix For: Gazelle C
>
>
> To repro:
> Navigate to client to create a new loan account. In loan account creation,
> at the bottom, attach a loan fee that is periodic. Periodic loan fee pops up
> to let's say 1.0. Click Continue.
> Error message
> The addtional fee is invalid because the number of digits after the decimal
> separator exceeds the allowed number 0
> Work around is to remove the .0. Hassle for the user.
> This happens when you do this in the first time, and then also after you
> remove the .0, click Preview, and decide to come back to edit and add another
> periodic loan fee.
--
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