In QuickBooks Online, you can change the account used in a deposit to correct the posting account. Let me walk you through the steps on how to accomplish this.
Go to Accounting.
Select Chart of Accounts.
Find your bank account from the list of accounts.
Under ACTION, select View register.
Open the deposit in question.
On the Account menu, select your checking account instead of the bank account used to correct your deposit.