From 63ba19f2b573833e6b84c848b07a3340a623f8f9 Mon Sep 17 00:00:00 2001 From: Muhimbura Brian Mart Date: Fri, 6 Oct 2023 15:33:31 +0300 Subject: [PATCH] View details on prequaalification exceptions --- .../service/PrequalificationWritePlatformServiceImpl.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationWritePlatformServiceImpl.java b/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationWritePlatformServiceImpl.java index 13ba8de70ae..f6bd4a9066e 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationWritePlatformServiceImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationWritePlatformServiceImpl.java @@ -634,19 +634,16 @@ public CommandProcessingResult sendForAnalysis(Long entityId, JsonCommand comman Integer fromStatus = prequalificationGroup.getStatus(); List exceptionsList = List.of("ORANGE", "RED", "YELLOW"); List> rows = prequalification.getRows(); - AtomicReference status = new AtomicReference<>(PrequalificationStatus.AGENCY_LEAD_PENDING_APPROVAL); + AtomicReference status = new AtomicReference<>(PrequalificationStatus.ANALYSIS_UNIT_PENDING_APPROVAL); for (List innerList : rows) { innerList.forEach(item -> { if (exceptionsList.contains(item)) { - status.set(PrequalificationStatus.AGENCY_LEAD_PENDING_APPROVAL_WITH_EXCEPTIONS); + status.set(PrequalificationStatus.ANALYSIS_UNIT_PENDING_APPROVAL_WITH_EXCEPTIONS); } }); } prequalificationGroup.updateStatus(status.get()); - prequalificationGroupRepositoryWrapper.save(prequalificationGroup); - - this.prequalificationGroupRepositoryWrapper.save(prequalificationGroup); PrequalificationStatusLog statusLog = PrequalificationStatusLog.fromJson(appUser, fromStatus, prequalificationGroup.getStatus(), null, prequalificationGroup);