Invoices are always recorded in your A/R account.
If you see parts of invoices in a bank account, you must be using one or more items set up to use that bank account.
The typical / normal case where a bank account is used on an item is for a payment type item. If you're using payment type items on your invoices, and this is resulting in money in the wrong account, then the item is using the wrong account. You can edit it and change the account (from your items list) and then when you use it the new account will be used.