Skip to content

Commit

Permalink
Change RECEIVED to IN_PROGRESS while updating the status
Browse files Browse the repository at this point in the history
  • Loading branch information
azizdiakite committed Sep 11, 2024
1 parent 5a850b3 commit 959fe4d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ private Boolean updateTasksInBundle(List<Bundle> taskBundles) {
tasksUpdated = true;
}

if(openelisTask.getStatus().toString().equals(TaskStatus.REQUESTED.toString()) || openelisTask.getStatus().toString().equals(TaskStatus.ACCEPTED.toString()) ){
if( openelisTask.getStatus().toString().equals(TaskStatus.ACCEPTED.toString()) ){
openmrsTask.setStatus(openelisTask.getStatus());
setOrderStatus(openmrsTask.getBasedOn(), openelisTask.getStatus().toCode(), Order.FulfillerStatus.RECEIVED, commentText);
setOrderStatus(openmrsTask.getBasedOn(), openelisTask.getStatus().toCode(), Order.FulfillerStatus.IN_PROGRESS, commentText);
tasksUpdated = true;
}
}
Expand Down

0 comments on commit 959fe4d

Please sign in to comment.