Added check not empty location code in Inventory Locations.