Non intercompany errors, trial balances off

Hello,  im having a tough time figuring out how to fix an unbalanced trial balance. 

Trying my best to provide a detailed explanation of what happened. We have a few different companies within our system, and they are not intercompany accounts, if im saying this right. I cannot enter unbalanced entries within one company, and we use due to/from accounting to move money between the companies. The two company act numbers in error are 10 and 50. 

We closed a bank account at one bank to move funds to new bank. The old bank was to send us a new check to deposit into new account. So we recorded an entry of a check. We originally expensed this amount to the wrong account. We expensed a 10 account when the 50 account was making the payment. The system flagged this and threw the money into the suspense account, which we never use.  The original invoice for this I was able to edit. I changed the expense account to the appropriate 50 account, which fixed my suspense account issue and brought It back to 0. 

Now where I think my problem is. When we received the check from the old bank, my team deposited this check from the 50 company into the 10 expense account that they originally entered wrong (original invoice was expensed to 10, should’ve been 50). This was done in Job Cost, and has a batch #. I think if I could just change this Job cost entry to credit the appropriate 50 account would probably fix my issue. Problem is everything is cleared/reconciled. So I don’t think I can do it. When I go to change entries in job cost the batch number doesn’t even populate. 

All my bank ledgers are correct, but I have this credit amount in company 10 and debit in 50, making my trial balances off by this amount. 

Any help would be greatly appreciated.