[
http://mifosforge.jira.com/browse/MIFOS-2841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jbrewster updated MIFOS-2841:
-----------------------------
Attachment: ApplyChargeActionForm.java
proposed patch from An - note from An:
Hi all,
I've just done a quick fix the bug MIFOS-2841. I added getChargeCurrency() into
ApplyChargeActionForm for it to detect what kind of currency charged, so as to
get the correct DigitsAfterDecimal for the currency. However, I think there are
some other ActionForms also need to know the kind of currency being charge.
Therefore, it should be put under BaseActionForm. But I'm not very sure whether
it will effect the other, because the BaseActionForm is extended by quite a lot
of classes.
Regards,
An
> Get invalid digits message for fee when secondary currency has more decimals
> ----------------------------------------------------------------------------
>
> Key: MIFOS-2841
> URL: http://mifosforge.jira.com/browse/MIFOS-2841
> Project: mifos
> Issue Type: Bug
> Components: Fee
> Affects Versions: Release 1.5
> Environment: http://ci.mifos.org:8106/mifos
> Reporter: jbrewster
> Assignee: mifosdeveloperqueue
> Fix For: Gazelle Backlog
>
> Attachments: ApplyChargeActionForm.java
>
>
> If secondary currency is set with more decimals (e.g. 2) than primary
> currency (e.g. 0), the Apply Charges page incorrectly validates for zero
> decimals when applying a charge to a loan with secondary currency.
> Repro:
> 1. Log on to http://ci.mifos.org:8106/mifos. On this instance (as of 8 April
> 2010) the primary currency is INR with zero digits after decimal precision.
> The secondary currency is USD with 2 digits after decimal.
> 2. search for loan # 000100000000443
> 3. apply charge "Awesome USD fee" to loan.
> 4. note fee shows up as 20.00
> 5. click submit
> Actual result:
> error "The Amount is invalid because the number of digits after the decimal
> separator exceeds the allowed number 0"
> expected result:
> able to apply fee since loan is USD loan.
--
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
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues