Invoices ends up in the default company instead of the company it should go to

To solve this follow below steps:

1. Search for the invoice in the Captured invoice report 

2. Check the value under the Company column

3. Enter this value under Alias under the correct company in the Administration > Register > Company