From b6f9ec6bcbc505c5c6d569116be0b665795af45d Mon Sep 17 00:00:00 2001 From: Chandrika Date: Mon, 6 Apr 2015 19:16:46 -0400 Subject: [PATCH] MIFOSX-1742 Not displaying loan records which are not Active. --- .../service/CollectionSheetReadPlatformServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/service/CollectionSheetReadPlatformServiceImpl.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/service/CollectionSheetReadPlatformServiceImpl.java index 0e1aa5bb0..03edd5e08 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/service/CollectionSheetReadPlatformServiceImpl.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/service/CollectionSheetReadPlatformServiceImpl.java @@ -707,7 +707,7 @@ public class CollectionSheetReadPlatformServiceImpl implements CollectionSheetRe if (checkforStaffId) { sb.append("ln.loan_officer_id = :staffId and "); } - sb.append("(ln.loan_status_id = 200 or ln.loan_status_id = 300) "); + sb.append("(ln.loan_status_id = 300) "); sb.append("and ln.group_id is null GROUP BY cl.id , ln.id ORDER BY cl.id , ln.id ) loandata "); sb.append("LEFT JOIN m_loan_charge lc ON lc.loan_id = loandata.loanId AND lc.is_paid_derived = 0 AND lc.is_active = 1 AND ( lc.due_for_collection_as_of_date <= :dueDate OR lc.charge_time_enum = 1) "); sb.append("GROUP BY loandata.clientId, loandata.loanId ORDER BY loandata.clientId, loandata.loanId ");