With auto-reference numbering enabled, the next number will be automatically assigned. Ensure that the Last Wire number is correctly set in LEAP Menu > Settings > Application Settings > Accounting > Bank Accounts > Operating Account / Trust.
If you notice that payment numbers are being skipped, it could be because the number has already been used. To verify, navigate to LEAP Menu > Accounting > Search Transactions and search by the transaction number.