fixed order id generation in product api to take into accoutn pending orders