Try the following steps until the issue is resolved:

1.  Select the correct bank from Banks > Select a Bank Account
2.  In Records > Invoices, open the Invoice
3.  Select the Payments/Credits tab and ensure the correct Bank Account is selected
4.  Save and Close the Invoice