You have the option of recording a transfer from the Sole Trader bank account to the correct account and then matching/recording the payment to the invoice.
The process will depend on whether the Sole Trader account is in the QuickBooks Online Company Chart of Accounts or not.