Thanks for posting your question here in the Community forum, @mercedesarenado.
If you don't want the invoice to show on your books, you can delete or void it and have the payment transaction to remain.
Doing so will have a deposit balance on your customer's account that they can apply in the future.
To void or delete an invoice, here's what you'll need to do:
- In the left menu, click Sales.
- Go to the Customers tab.
- Locate and open the customer profile.
- Open the Invoice.
- Click the More button at the bottom.
- Select Void or Delete.
To learn more about this process, you can read this article: Void or delete transactions in QuickBooks Online.
As always, you can get back to me if you have any additional questions. I'm here for you. Have a great day!