Let me help you mark your invoice as paid, taurusoilfield.
We can edit your existing deposit and change its account to Accounts Receivable. This way, we can link it to your invoice without affecting the bank balance.
I've attached a screenshot for your reference.
If you have other questions about recording transactions in QuickBooks Online, just let me know.