Internal Customer and Supplier Transaction

I have Main Company and Dealer Companies, so i created internal Customer that represent Dealer Company in Dealer. And Internal Supplier that Represent Main Company. I Need to make Po in Dealer Company and Sale Order In Main Company. and to main Stock separately. Is It Possible and How can I ?