Skip to content

Commit 680b7d1

Browse files
Allocation status changed (#86)
* fix(bug): allocationstatus changed * Allocation call changes
1 parent 668dd17 commit 680b7d1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/com/iemr/ecd/service/associate/CallClosureImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public String closeCall(CallClosureDTO request) {
194194
}
195195
if (obj.getReceivedRoleName() != null && obj.getReceivedRoleName().equalsIgnoreCase(Constants.ANM)
196196
&& request.getPreferredLanguage() != null && !request.getPreferredLanguage().isEmpty()) {
197-
callObj.setAllocationStatus(Constants.OPEN);
197+
callObj.setAllocationStatus(Constants.UNALLOCATED);
198198
callObj.setCallAttemptNo(0);
199199
} else {
200200
callObj.setCallAttemptNo(callObj.getCallAttemptNo() + 1);
@@ -203,7 +203,6 @@ public String closeCall(CallClosureDTO request) {
203203
callObj.setCallStatus(Constants.OPEN);
204204
}
205205
isLanguageMapped = isLanguageMappedWithUser(request);
206-
207206
if(!isLanguageMapped && (callObj.getEcdCallType().equalsIgnoreCase("introductory") || callObj.getEcdCallType().equalsIgnoreCase("ANM"))) {
208207

209208
callObj.setAllocatedUserId(null);

0 commit comments

Comments
 (0)