changed generate_order_number method for insure that generated numbers n...

...ever finish #5102