Loan Write Off Bug (version 2.1)

Description

Scenario
-log in into Mifos
-Search for a loan with future installments
-click on edit account status
-write off

behavior:
-loan is written off but with a weird behavior
Account_payment table is updated with the right amount
on the other hand the account_trxn table is not. The table loan_schedule is also not updated were the capital paid and interest paid are not updated
you can check the schedule of a loan after writing off (no capital is shown,weird interest)

expected behavior:
the written off amount in the account_payment table should be reflected to the account_trxn table

Environment

None

Activity

Show:
johnwoodlock
June 30, 2011, 9:17 AM

issue relating to account_payment amount only containing principal for overdue installments
and issue relating to financial_transactions only containing principal for overdue installments are not part of the scope of this issue.

This issue is restricted to dealing with unpaid installment(s) remaining after a write-off or a reschedule. It happens when there are future installments. G Release has the code fix and the data fix so tests require a prior mifos release to create the problem.

Lukasz Chudy
July 1, 2011, 2:44 PM

After fix there are slight differences between Release 1.6.x and Release 2.2. See attached screenshots.

Kay Chau
July 1, 2011, 3:42 PM

Will also note this in the release notes

Lukasz Chudy
July 1, 2011, 3:55 PM

I've created a new issue for those differences

Mifos Hudson Jira Plugin User
July 4, 2011, 3:15 PM

Integrated in

head-f-release #179
- Loan Write Off Bug (version 2.1) - application change
- Loan Write Off Bug (version 2.1) - undoing wrong mainDatabase.properties change

Keith Woodlock : 012825d8b048f6cbd228c8e54d5fa4b1dc5c5065
Files :

  • appdomain/src/main/java/org/mifos/accounts/loan/business/LoanBO.java

  • appdomain/src/main/resources/org/mifos/config/resources/mainDatabase.properties

  • appdomain/src/main/java/org/mifos/accounts/business/AccountBO.java

Keith Woodlock : dc2beaded657f819a1326472676b9e66be889afc
Files :

  • appdomain/src/main/resources/org/mifos/config/resources/mainDatabase.properties

Assignee

mifosqa

Reporter

George Lteif

URL

None

Story Points

None

Team

Core

Scheduled For

None

Epic

None

Notify

None

productboard URL

None

Man Day Estimate

None

Components

Fix versions

Affects versions

Priority

Major
Configure