praveen|making a check for at least one ordre before creating a sale order