Assigning warehouse to resources