fixed #5113 and was added options to generate_order_number