Merge pull request #430 from goutham-M/mifosx533
mifosx533 able to associate for group even closed client also(fixed)
This commit is contained in:
+3
-2
@@ -30,6 +30,7 @@ import org.mifosplatform.portfolio.client.data.ClientAccountSummaryCollectionDat
|
||||
import org.mifosplatform.portfolio.client.data.ClientAccountSummaryData;
|
||||
import org.mifosplatform.portfolio.client.data.ClientData;
|
||||
import org.mifosplatform.portfolio.client.domain.ClientEnumerations;
|
||||
import org.mifosplatform.portfolio.client.domain.ClientStatus;
|
||||
import org.mifosplatform.portfolio.client.exception.ClientNotFoundException;
|
||||
import org.mifosplatform.portfolio.group.data.GroupGeneralData;
|
||||
import org.mifosplatform.portfolio.group.service.SearchParameters;
|
||||
@@ -219,9 +220,9 @@ public class ClientReadPlatformServiceImpl implements ClientReadPlatformService
|
||||
@Override
|
||||
public Collection<ClientData> retrieveAllForLookupByOfficeId(final Long officeId) {
|
||||
|
||||
final String sql = "select " + this.lookupMapper.schema() + " and c.office_id = ?";
|
||||
final String sql = "select " + this.lookupMapper.schema() + " where c.office_id = ? and c.status_enum != ?";
|
||||
|
||||
return this.jdbcTemplate.query(sql, this.lookupMapper, new Object[] { officeId });
|
||||
return this.jdbcTemplate.query(sql, this.lookupMapper, new Object[] { officeId, ClientStatus.CLOSED.getValue()});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user