Can't Apply Payments to Group Loans that were disbursed in versions prior to 2.4.0 and 2.3

Description

In versions prior to 2.3 and 2.4
the account_state_id for individual clients where not updated when disbursal of a group loan

if you disburse a loan in versions prior to 2.3.0, the group account state id is changed to 5 (active in good standing)
but the group clients inside that group keep the state of 2 (pending for approval) and are not udpated

in versions 2.3 and 2.4 this bug has been fixed

So if you try applying a payment to old loans, you cannot proceed

scenario:
1-go to an active group loan (created in versions prior to 2.3)
2-Apply payment

result
you cannot continue with the payment
a red dot is displayed and not errors are thrown at the log

expected result
successful payment applied

Workaround
Issue an update query to all group client accounts and update their account_state_id to either 5 or 9 (depending on the parent account)

Environment

LSIM is on
GLim is on
Centers are off

Activity

Show:
Michał Dudziński
June 25, 2012, 10:37 AM
Edited

I've added workaround update query. It should fix account_state_id from group loan accounts to correct value, depending on account_state_id from parent account.
This is my proposition for solution, but there is need to test it. Łukasz, could You check if my fix doesn't have any negative impact on other parts of mifos?

Lukasz Chudy
June 28, 2012, 12:54 PM

Michał,

Bug has been fixed properly but this update query should be moved to the database changesets for Vinolia I.

Michał Dudziński
June 29, 2012, 1:41 PM

Added update query to changeset for Vinolia I in commit a3de34e262d2d1a7c3ac18d5940eeee12cfe90c2.
Build Number: head-i-release-commit-31

Lukasz Chudy
July 4, 2012, 11:18 AM

Bug has been fixed properly.

This fix works only after running contract_db.sh upgrade script on database.

Build Date: Tue Jul 03 10:20:43 PDT 2012
Build Number: hudson-head-i-release-archive-30

Assignee

Michał Dudziński

Reporter

George Lteif

Labels

URL

None

Story Points

None

Team

Core

Scheduled For

None

Epic

None

Notify

None

productboard URL

None

Man Day Estimate

None

Fix versions

Affects versions

Priority

Major
Configure