The maximum number for any transaction, except for the order number is 9,999,999.
The maximum number for the order number is 99,999,999.
This affects automatically assigned transaction numbers including invoice, payment, adjustment, voucher, payable, journal, and batch numbers, etc.