[
http://mifosforge.jira.com/browse/MIFOS-4523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=64011#action_64011
]
keithwoodlock commented on MIFOS-4523:
--------------------------------------
I was able to replicate. for some strange reason we work out the number of
'installments to skip' based on grace period duration and whether LSIM is on or
off.
When LSIM is off, installments to skip defaults to 1 + grace period duration
{code}
private Short getInstallmentSkipToStartRepayment(final boolean
isRepaymentIndepOfMeetingEnabled) {
/*
* TODO: if interest deducted at disbursement is re-enabled, then we
need to figure out why this logic was here.
* This logic broke grace period functionality in normal loan cases and
was removed as part of MIFOS-1994
*
* boolean isInterestDeductedatDisbursement =
isInterestDeductedAtDisbursement(); if
* (isRepaymentIndepOfMeetingEnabled) {
isInterestDeductedatDisbursement = !isInterestDeductedAtDisbursement();
* } else { isInterestDeductedatDisbursement =
isInterestDeductedAtDisbursement(); } if
* (isInterestDeductedatDisbursement) { return (short) 0; }
*/
// in the default case of loan schedules tied to meeting schedules,
// the loan is disbursed at the first meeting (#0) and the first
// payment is made at the following meeting (#1)
short firstRepaymentInstallment = 1;
// if LoanScheduleIndependentofMeeting is on, then repayments start on
// the first meeting in the schedule (#0)
if (isRepaymentIndepOfMeetingEnabled) {
firstRepaymentInstallment = 0;
}
if (getGraceType() == GraceType.PRINCIPALONLYGRACE || getGraceType() ==
GraceType.NONE) {
return (short) firstRepaymentInstallment;
}
return (short) (getGracePeriodDuration() + firstRepaymentInstallment);
}
{code}
> Wrong repayment schedule generated post disbursal when disbursal date advanced
> ------------------------------------------------------------------------------
>
> Key: MIFOS-4523
> URL: http://mifosforge.jira.com/browse/MIFOS-4523
> Project: mifos
> Issue Type: Bug
> Components: Loan Account
> Affects Versions: Elsie F - Iteration 8
> Environment: Master
> Reporter: Deepak Paramasivam
> Assignee: keithwoodlock
> Priority: Major
> Fix For: Elsie F - Iteration 9
>
>
> Steps To reproduce the bug:
> 1. Set LSIM - off
> 2. Create a loan account, and while the loan creation mention a disbursal
> date that falls on a meeting date, [eg: 10th-Jan] such that the first
> installment date falls on the next meeting date. [eg.: 17-Jan]
> 3. Disburse the loan on a date before the day mentioned during the loan
> schedule [eg: 9th-jan].
> the first installment date doesn't changes to next meeting date to the
> disbursal date [eg: 10th Jan], instead it remains in the same date before the
> disbursal [eg: 17th Jan].
--
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
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues