for company A: debit:cash at bank 100000
credit:account payble 100000
after 10 days,adjust the account :debit:account payable 100000
credit:cash at bank :100000
for company B:it should be recorded opposite to company A