Was added options to generate_order_numer.

Fixes #5126
Fix spec.