Process wise stock location auto selection

SUGGESTED

Hi i need to setup a process so that locations are auto selected based on type of transaction and process for ex. 

Here if I select the receipt type as "Return receipt", then system should auto select the location code as "RETURN"

Is there any method to do that via setup.