You can remove the Needs attention error message by recording the returned payment using the Journal Entry method, Doc.
First, we'll need to create a Journal Entry affecting Accounts Receivable (A/R) to link the returned payment and reopen the invoice. In this process, we won't need to edit the deposit that includes the returned payment.
You can follow the steps below:
- Create a new Journal Entry (JE).
- Set the Journal date as the payment bounce date.
- In the Account column on the first line, select Accounts Receivable.
- Enter the amount of the bounced payment in the Debits column.
- From the Name column dropdown, select the customer's name.
- On the second line, select your bank account in the Account column. The amount will automatically populate the Credits field.
- Add a clear Memo to explain the reason for the journal entry
- Once finished, click Save.
You can refer to this image below:

Next, we'll want to unlink the original payment from the invoice and link it to the journal entry you've created.
Here's how:
- Go to your customer's profile.
- In the Transaction List, locate returned payment and click on View/Edit.
- Untick the invoice to unlink the payment from it.
- Place a checkmark next to the JE.
- Review other details, and then Save and close.

After the process is complete, the invoice will be reopened and the error message will be removed. From there, you can directly resend the same invoice to your customer for payment.
Please see the attached image below:

Feel free to reply to this post if you need further assistance.