If you've turned on the Custom transaction numbers feature in your settings you'll be able to change an invoice number. Let's check your settings to start with how you can change an invoice number. Here's how:
Click on the Gear Icon, and click on Account and Settings.
Click on the Sales tab.
Click on the Pencil icon in the Sales form content.
Check if Custom transaction numbers are turned on or ticked.
Click Save, then Done.
Once done, you can go to the Sales tab and locate the invoice you wanted to change the number by clicking on the Edit invoice option.