You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Sanyam Goel (JIRA)" <ji...@apache.org> on 2018/12/23 17:40:00 UTC

[jira] [Commented] (FINERACT-302) Principal Threshold (%) for Last Instalment is not working as expected

    [ https://issues.apache.org/jira/browse/FINERACT-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16728012#comment-16728012 ] 

Sanyam Goel commented on FINERACT-302:
--------------------------------------

[~edcable] [~santoshmath]
Regarding the first point mentioned here

*Create* loan *product* with out *mentioning* any thing *in the "Principal Threshold (%) for* Last *Instalment" - by* default *it is getting set to zero*
Instead *it should get set to 50%*
!Screenshot from 2018-12-23 22-13-02.png!
principalThresholdForLastInstallment is being set to zero as in loanProduct create request as "multiDisburseLoan" key is going "false" which is set in "settings > Loan Tranche Details" from UI. 
There is a logic in current code base which sets principalThresholdForLastInstallment = 0 when multiDisburseLoan = false else it is set to 50 as default. 
{code:java}
// CODE SNIPPET from LoanProduct.java line 323
if (principalThresholdForLastInstallment == null) {
principalThresholdForLastInstallment = multiDisburseLoan ? LoanProductConstants.DEFAULT_PRINCIPAL_THRESHOLD_FOR_MULTI_DISBURSE_LOAN
: LoanProductConstants.DEFAULT_PRINCIPAL_THRESHOLD_FOR_SINGLE_DISBURSE_LOAN;
{code}

Please confirm do we have to set principalThresholdForLastInstallment as default 50 even in the case when multiDisburseLoan is false or this was the intended behavior?
[~rahul.usit12] FYI

> Principal Threshold (%) for Last Instalment is not working as expected
> ----------------------------------------------------------------------
>
>                 Key: FINERACT-302
>                 URL: https://issues.apache.org/jira/browse/FINERACT-302
>             Project: Apache Fineract
>          Issue Type: Bug
>          Components: Loan
>            Reporter: Santosh Math
>            Assignee: Markus Geiss
>            Priority: Major
>              Labels: Volunteer, fineract-gci, gsoc, p1
>             Fix For: 1.4.0
>
>         Attachments: Scr-664.png, Screenshot from 2018-12-23 22-13-02.png, Screenshot from 2018-12-23 22-14-34.png
>
>
> Reported by Subramanya at https://mifosforge.jira.com/browse/MIFOSX-2031
> Original Desription:
> 1. Create loan product with out mentioning any thing in the "Principal Threshold (%) for Last Instalment" - by default it is getting set to zero
> Instead it should get set to 50%
> 2, Create a client and submit new loan application wit the above mentioned loan product on 01 Jan 2015 with interest recalculation -> Approve and disburse on same date.
> 3. The last installment is getting collected more amount than EMI.
> If the "Principal Threshold (%) for Last Instalment" is set to zero then then the last installment should never be combined with the previous installment even if the last installment amount is of a very small value.
> But here it is displaying the amount>last installment amount



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)