I have never done this in different currencies. So not sure - mine is all in the same currency. (I can see you doing it in default currency for each company when you do the JE and then if there is any currency impact, that will need to be handled separately)
At YE (or any time of the year) - the balances in the Due (to)/ from accounts for each company will be accurate, and you can move funds over and zero out the balances, or keep it as current liability on the balance sheets of both companies.
I hope this makes sense - but again, please have someone validate the above.