[ 
http://mifosforge.jira.com/browse/MIFOS-3419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jakub Sławiński resolved MIFOS-3419.
------------------------------------

       Resolution: Fixed
    Scheduled For: Product
    Fix Version/s: Release E - Iteration 2

Fixed in commit 2b26d67d02e0e54b397a056bc0c54f71e7c5579e.

I have added new acceptance tests for loan and savings with date type custom 
fields. Moreover, I have verified that date type custom fields work correctly 
for other entities.

> InvalidDateException during loan creation when using date type custom fields
> ----------------------------------------------------------------------------
>
>                 Key: MIFOS-3419
>                 URL: http://mifosforge.jira.com/browse/MIFOS-3419
>             Project: mifos
>          Issue Type: Bug
>          Components: Loan Account
>    Affects Versions: Release E
>            Reporter: Jakub Sławiński
>            Assignee: Jakub Sławiński
>            Priority: Major
>             Fix For: Release E - Iteration 2, Release E
>
>
> Step to reproduce:
> 1. define custom field of date type for loan account
> 2. try to create loan
> EXPECTED:
>  loan is properly created
> ACTUAL:
>  after clicking 'submit for approval' an error is displayed (red dot without 
> any message).
> Investigation shows the following root cause:
> org.mifos.application.admin.servicefacade.InvalidDateException: 
> exception.validation.InvalidDate
>       at 
> org.mifos.framework.util.helpers.DateUtils.convertUserToDbFmt(DateUtils.java:80)
>       at 
> org.mifos.accounts.business.AccountBO.addcustomFields(AccountBO.java:464)
>       at org.mifos.accounts.loan.business.LoanBO.<init>(LoanBO.java:292)
>       at org.mifos.accounts.loan.business.LoanBO.<init>(LoanBO.java:252)
>       at org.mifos.accounts.loan.business.LoanBO.createLoan(LoanBO.java:447)
>       at 
> org.mifos.application.servicefacade.LoanServiceFacadeWebTier.assembleLoan(LoanServiceFacadeWebTier.java:493)
>       at 
> org.mifos.application.servicefacade.LoanServiceFacadeWebTier.createLoan(LoanServiceFacadeWebTier.java:606)
>       at 
> org.mifos.accounts.loan.struts.action.LoanAccountAction.create(LoanAccountAction.java:807)
> Shamim D is not affected by this bug, because it appeared after introduction 
> of LoanServiceFacadeWebTier. It seems that convertUserToDbFmt method is 
> called twice for the same custom field. However, this is a wrong design of 
> date type custom fields.

-- 
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

       

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to