refs #954 added error code for stock_warehouse.get_location_of_branch()