[
https://issues.apache.org/jira/browse/FINERACT-1287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Yahalomi updated FINERACT-1287:
-------------------------------------
Description:
On a loan with multi disbursement enabled, the original schedule is updated if
one of the disbursements changes. This also causes a weird negative amount on
the repayment periods.
*Expected behavior:*
After approval of a loan, the "planned" disbursements should be "frozen" so
that if the actual disbursement is on a different date or with a different
amount, it should not be reflected in the original repayment schedule.
*Actual behavior:*
The original schedule is updated when one of the disbursements changes. This
also causes a weird negative amount on the repayment periods.
*UPDATE (12/01/20)*
I did some digging into the code of LoanScheduleHistoryWritePlatformServiceImpl
and it seems like the disbursement data was not part of the specification of
this feature.
It seems to me like the purpose of the schedule history was more for the daily
recalculation of interest and not to keep the "original" loan terms that were
approved.
The disbursement data that appears in the "original" tab on the community app
is actually the "last known version" of the schedule with the current
disbursement data.
This is why the balance can become a negative value.
I think that in order to fix this one, we should create a proper "original"
snapshot support for everything that could change on the loan after approval.
*References:*
[https://openmf.github.io/community-app/?baseApiUrl=https%3A%2F%2Fdemo.fineract.dev&tenantIdentifier=default#/viewloanaccount/83]
!image-2021-01-11-18-31-18-835.png!
was:
On a loan with multi disbursement enabled, the original schedule is updated if
one of the disbursements changes. This also causes a weird negative amount on
the repayment periods.
*Expected behavior:*
After approval of a loan, the "planned" disbursements should be "frozen" so
that if the actual disbursement is on a different date or with a different
amount, it should not be reflected in the original repayment schedule.
*Actual behavior:*
The original schedule is updated when one of the disbursements changes. This
also causes a weird negative amount on the repayment periods.
*References:*
[https://openmf.github.io/community-app/?baseApiUrl=https%3A%2F%2Fdemo.fineract.dev&tenantIdentifier=default#/viewloanaccount/83]
!image-2021-01-11-18-31-18-835.png!
> Original schedule does not reflect the original disbursements
> -------------------------------------------------------------
>
> Key: FINERACT-1287
> URL: https://issues.apache.org/jira/browse/FINERACT-1287
> Project: Apache Fineract
> Issue Type: Bug
> Affects Versions: 1.5.0
> Reporter: David Yahalomi
> Priority: Major
> Attachments: image-2021-01-11-18-31-18-835.png
>
>
> On a loan with multi disbursement enabled, the original schedule is updated
> if one of the disbursements changes. This also causes a weird negative amount
> on the repayment periods.
> *Expected behavior:*
> After approval of a loan, the "planned" disbursements should be "frozen" so
> that if the actual disbursement is on a different date or with a different
> amount, it should not be reflected in the original repayment schedule.
> *Actual behavior:*
> The original schedule is updated when one of the disbursements changes. This
> also causes a weird negative amount on the repayment periods.
>
> *UPDATE (12/01/20)*
> I did some digging into the code of
> LoanScheduleHistoryWritePlatformServiceImpl and it seems like the
> disbursement data was not part of the specification of this feature.
> It seems to me like the purpose of the schedule history was more for the
> daily recalculation of interest and not to keep the "original" loan terms
> that were approved.
> The disbursement data that appears in the "original" tab on the community app
> is actually the "last known version" of the schedule with the current
> disbursement data.
> This is why the balance can become a negative value.
> I think that in order to fix this one, we should create a proper "original"
> snapshot support for everything that could change on the loan after approval.
>
> *References:*
> [https://openmf.github.io/community-app/?baseApiUrl=https%3A%2F%2Fdemo.fineract.dev&tenantIdentifier=default#/viewloanaccount/83]
>
> !image-2021-01-11-18-31-18-835.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)