If the transportation cost is mandatory to complete the production of inventory, or if the inventory is ready for sale but no market is available in area accordingly it is transported to market to be ready for sale then it is part of cost
If transported due to shortage of inventory in other warehouse then it is expense