Feature ds vendor order status

You can simplify this conditional as

```
if(closedFlag){
  ...
} else if (partiallyReceivedFlag){
 ...
}