-log in into Mifos
-Search for a loan with future installments
-click on edit account status
-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)
the written off amount in the account_payment table should be reflected to the account_trxn table
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.
After fix there are slight differences between Release 1.6.x and Release 2.2. See attached screenshots.
Will also note this in the release notes
I've created a new issue for those differences
- Loan Write Off Bug (version 2.1) - application change
- Loan Write Off Bug (version 2.1) - undoing wrong mainDatabase.properties change
Keith Woodlock : 012825d8b048f6cbd228c8e54d5fa4b1dc5c5065
Keith Woodlock : dc2beaded657f819a1326472676b9e66be889afc