Getnerate order number and create order for every transaction