Here's the catch regarding the invoice numbers in QuickBooks Online, erc-acctng-gmail.
When you turn on the Custom transaction numbers feature, the Invoice no. field now be available in the Invoice page. With the said, QuickBooks will prompt you that the number was already used upon saving the invoice. From there, you can select Yes or No to confirm the action.