I'm here to help you fix this issue you encountered with your invoice in QuickBooks Online, @remarkableps2021.
In QuickBooks Online (QBO), an option is available that automatically designates your invoices as paid. This feature can be enabled, and it could be the cause behind your invoices being marked as paid.
Here's how you can check if this feature is turned on:
Click the Gear icon at the top.
Select Account and Settings.
In the left menu, tap Advanced.
Hit the Pencil icon in the Automation section.
Check if there is a check-mark in the box next to apply credits Automatically.
Once you have turned off this feature, log out and log back into your account. Then, try to create invoices again and check if they are still being marked as paid.