Genarate Item code function i StockControl.cs