[
http://mifosforge.jira.com/browse/MIFOS-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jbrewster updated MIFOS-2686:
-----------------------------
Summary: Mifos is prepopulating loan and fee amounts with a decimal
even though the digitsAfterDecimal is set to 0 place and this is now throwing
errors (was: Mifos is prepopulating loan and fee amounts with a decimal even
though the rounding is set to 1 place and this is now throwing errors)
Description:
This was working fine previously in Mifos 1.3.1 and surfaced in 1.4.2.
When creating a loan, if the configuration setting
AccountingRules.DigitsAfterDecimal is set to 0, Mifos still populates the loan
amount and fee amount with a single decimal place. This means that when
attempting to continue the loan application, mifos throws the two following
errors
# The Amount is invalid because the number of digits after the decimal
separator exceeds the allowed number 0
# The administrative fee is invalid because the number of digits after the
decimal separator exceeds the allowed number 0
REPRO:
Configure Mifos instance with AccountingRules.DigitsAfterDecimal=0
1. Create Loan product with a fee attached
2. Create a loan account for a client
3. Note that for the loan amount, it has added .0 (ie, 5000 = 5000.0) and the
fee has an added .0 as well (20 = 20.0)
4. Click on continue
EXPECTED:
Mifos does not throw an error and goes to the next page
ACTUAL:
Mifos throws the two errors
There are two options for this solution
1. Rollback to the original functionality, where it did not trigger the error,
since .0 is still accurate, in regards to the rounding
2. Fix Mifos to not add the .0, which would be closer to what was implied in
the configuration setting
was:
This was working fine previously in Mifos 1.3.1 and surfaced in 1.4.2.
When creating a loan, if the configuration setting
AccountingRules.FinalRoundOffMultiple is set to 1, Mifos still populates the
loan amount and fee amount with a single decimal place. This means that when
attempting to continue the loan application, mifos throws the two following
errors
# The Amount is invalid because the number of digits after the decimal
separator exceeds the allowed number 0
# The administrative fee is invalid because the number of digits after the
decimal separator exceeds the allowed number 0
REPRO:
Configure Mifos instance with AccountingRules.FinalRoundOffMultiple=1
1. Create Loan product with a fee attached
2. Create a loan account for a client
3. Note that for the loan amount, it has added .0 (ie, 5000 = 5000.0) and the
fee has an added .0 as well (20 = 20.0)
4. Click on continue
EXPECTED:
Mifos does not throw an error and goes to the next page
ACTUAL:
Mifos throws the two errors
There are two options for this solution
1. Rollback to the original functionality, where it did not trigger the error,
since .0 is still accurate, in regards to the rounding
2. Fix Mifos to not add the .0, which would be closer to what was implied in
the configuration setting
> Mifos is prepopulating loan and fee amounts with a decimal even though the
> digitsAfterDecimal is set to 0 place and this is now throwing errors
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MIFOS-2686
> URL: http://mifosforge.jira.com/browse/MIFOS-2686
> Project: mifos
> Issue Type: Bug
> Affects Versions: Release 1.4.2
> Reporter: rwhitney
> Priority: Major
> Attachments: applicationConfiguration.custom.properties,
> screenshot-1.jpg
>
>
> This was working fine previously in Mifos 1.3.1 and surfaced in 1.4.2.
> When creating a loan, if the configuration setting
> AccountingRules.DigitsAfterDecimal is set to 0, Mifos still populates the
> loan amount and fee amount with a single decimal place. This means that when
> attempting to continue the loan application, mifos throws the two following
> errors
> # The Amount is invalid because the number of digits after the decimal
> separator exceeds the allowed number 0
> # The administrative fee is invalid because the number of digits after the
> decimal separator exceeds the allowed number 0
> REPRO:
> Configure Mifos instance with AccountingRules.DigitsAfterDecimal=0
> 1. Create Loan product with a fee attached
> 2. Create a loan account for a client
> 3. Note that for the loan amount, it has added .0 (ie, 5000 = 5000.0) and the
> fee has an added .0 as well (20 = 20.0)
> 4. Click on continue
> EXPECTED:
> Mifos does not throw an error and goes to the next page
> ACTUAL:
> Mifos throws the two errors
> There are two options for this solution
> 1. Rollback to the original functionality, where it did not trigger the
> error, since .0 is still accurate, in regards to the rounding
> 2. Fix Mifos to not add the .0, which would be closer to what was implied in
> the configuration setting
--
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
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues