[ 
http://mifosforge.jira.com/browse/MIFOS-2006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57822#action_57822
 ] 

johnwoodlock commented on MIFOS-2006:
-------------------------------------

If you disburse a loan via 'loan details/disburse loan' (method 
LoanDisbursementAction.update) there is a 'struts action' check which calls 
CustomerBO.hasActiveLoanAccountsForProduct.

This check determines if the customer has any active loans already existing for 
the loan product.  If there are... an error appears.

Collection sheets don't go thru this 'struts action' so this check doesn't run 
for CSE (which is why you can bypass this issue if you really want to).

The 'check' looks for loans of the same product but does not check anything 
further (e.g. whether 'Same for all Loans' has been ticked for loan amount 
and/or # of installments).

-------
Would the following be the shape of the suggested fix? (if yes its about a 0.5 
story point)
1/ The check should cover all loan disbursals whether disbursed from CSE or 
loan details page.
2/ (Business rule clarification) 
Any loan products that have 'Same for all loans' ticked for "Calculate Loan 
Amount as:" AND "Calculate # of Installments as:"... then its ok to allow more 
than one active loan per customer. (does "Include in Loan cycle counter." come 
into this?)

Will wait for answer being changing anything.

> Cannot create two active loan accounts for the same loan product when loan 
> product definition is not based on previous amount or loan cycle
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MIFOS-2006
>                 URL: http://mifosforge.jira.com/browse/MIFOS-2006
>             Project: mifos
>          Issue Type: Bug
>          Components: Loan Account
>    Affects Versions: Release 1.1
>         Environment: Platform: All, OS: All
>            Reporter: aliyaw
>            Assignee: johnwoodlock
>            Priority: Critical
>             Fix For: Gazelle Backlog
>
>
> REPRO
> 1.  Create a loan product with amounts and installments 'same for all loans'
> 2.  Create and disburse a loan account for this product 
> 3.  Create and disburse a second account for this product
> OBSERVED
> System throws an error saying you cannot disburse the loan while you  have
> another of that product active
> EXPECTED
> Since loans are not by loan cycle or previous amount, I should be able to have
> any many of them at once as I want.  We don't want to prevent customers who 
> have
> always been able to create loans of the same type to the customer from being
> able to do so.  For example if a customer has an Emergency loan and they are
> granted a second Emergency loan, the MFI should be able to disburse this.  (or
> any similar use case).
> NOTES:
> This issue is occurring because of an oversight in the design of issue 1610
> which prevents disbursal of a loan account based on previous amount/loan cycle
> when there is another active loan account of the same type.  We should not
> similarly limit accounts that are based on amounts/installments that are the
> same for all loan cycles or all previous loan amounts.

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

        

------------------------------------------------------------------------------

_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to