Passing adjustment entries between 2 suppliers

Passing adjustment entries between 2 suppliers

I have a supplier to whom I paid some advances which I recorded in their name as Excess payment. when I got the materials their bills were, a few from the parent company and a a few from their sister company. Now How do I allocate the paymants to the sister company as all debits are in the parent company. 

Kindly advise. Is there a way passing a journal between the suppliers?