When you create an invoice for the new financial year, you can enter the 0001 in the Invoice no. field. QuickBooks then generates invoice number 0002 and so on for each transaction successively and automatically. Here's how:
Click +New from the left panel.
Select Invoice.
From the Invoice no. field, type 0001.
Enter invoice details.
Hit Save and close.
However, if you have already used this number from your previous fiscal year, the system resets your invoice numbers (starting from 0001). Furthermore, this will show two invoices with different invoice details when you search for a specific invoice number and review your sales reports.
For a tip, you can add a prefix like, for example, FY22-230001to ensure this will show a unique invoice number. Then the number will be followed by FY22-230002, FY22-230003, and so on automatically.