Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View details on prequaalification exceptions #213

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -634,19 +634,16 @@ public CommandProcessingResult sendForAnalysis(Long entityId, JsonCommand comman
Integer fromStatus = prequalificationGroup.getStatus();
List<String> exceptionsList = List.of("ORANGE", "RED", "YELLOW");
List<List<String>> rows = prequalification.getRows();
AtomicReference<PrequalificationStatus> status = new AtomicReference<>(PrequalificationStatus.AGENCY_LEAD_PENDING_APPROVAL);
AtomicReference<PrequalificationStatus> status = new AtomicReference<>(PrequalificationStatus.ANALYSIS_UNIT_PENDING_APPROVAL);
for (List<String> 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);
Expand Down
Loading