You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Mihaly Dallos (Jira)" <ji...@apache.org> on 2023/02/08 13:46:00 UTC

[jira] [Created] (FINERACT-1885) Cannot add charge if loan had ever been overpaid at any time before

Mihaly Dallos created FINERACT-1885:
---------------------------------------

             Summary: Cannot add charge if loan had ever been overpaid at any time before
                 Key: FINERACT-1885
                 URL: https://issues.apache.org/jira/browse/FINERACT-1885
             Project: Apache Fineract
          Issue Type: Bug
            Reporter: Mihaly Dallos


During the loan lifecycle if the loan was overpaid and reopened, adding new loan charge is not possible due to NPE issues at backend.

Seems when the loan got overpaid the “actualMaturityDate” set to “null” and when the loan got reopened, the “actualMaturityDate” is not set.
Adding a new loan charge is depending on the “actualMaturityDate” to calculate whether it needs to add an additional instalment or not.

*Expected Result*
The system should recalculate and update the actualMaturityDate once the loan becomes active again based on the expectedMaturityDate (which equals to the last non-additional instalment* due date). 
* N+1

{panel}
*Acceptance criteria*
Adding a loan charge is possible to an active loan at any time
Even if a loan got overpaid and then reopened, adding a new charge should possible
{panel}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)