From 7dba3dc69f3879acd47e9f0af54bbfd95ee28d32 Mon Sep 17 00:00:00 2001 From: Muhimbura Brian Mart Date: Fri, 10 Nov 2023 12:32:36 +0300 Subject: [PATCH] Correct filter for agency lead page --- .../service/PrequalificationReadPlatformServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationReadPlatformServiceImpl.java b/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationReadPlatformServiceImpl.java index 930bbd44353..7c20fff8be9 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationReadPlatformServiceImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationReadPlatformServiceImpl.java @@ -332,9 +332,12 @@ private String buildSqlStringFromBlacklistCriteria(final SearchParameters search } else if (type.equals("analysis")) { extraCriteria += " and g.status IN( " + PrequalificationStatus.ANALYSIS_UNIT_PENDING_APPROVAL.getValue().toString() + ", " + PrequalificationStatus.ANALYSIS_UNIT_PENDING_APPROVAL_WITH_EXCEPTIONS.getValue().toString() + ") "; - } else if (type.equals("exceptionsqueue")) { + } else if (type.equals("agency")) { extraCriteria += " and g.status IN( " + PrequalificationStatus.AGENCY_LEAD_PENDING_APPROVAL.getValue().toString() + ", " + PrequalificationStatus.AGENCY_LEAD_PENDING_APPROVAL_WITH_EXCEPTIONS.getValue().toString() + ") "; + }else if (type.equals("exceptionsqueue")) { + extraCriteria += " and g.status IN( " + PrequalificationStatus.ANALYSIS_UNIT_PENDING_APPROVAL_WITH_EXCEPTIONS.getValue().toString() + ", " + + PrequalificationStatus.AGENCY_LEAD_PENDING_APPROVAL_WITH_EXCEPTIONS.getValue().toString() + ") "; } else if (type.equals("committeeapprovals")) { if (committeeValueData == null) {