Dear,
For fully understanding your problem ,we need one more thing that is ,How you have made Settings for Return for Inter company STO process ?
Note : We can manually assign Customer in Shipping Tab or else it comes from Vendor Master or one more thing preference is we will assign Customer in SPRO (Stock Transfer Ste up ) .
Thanks,
Naren