Fix edit order error and modify generate order action