How to link Customer and Vendor on web?

I will purchase the products from the vendor and I will sell products for the same vendor. In Swipe ledgers, it is showing separately, but I want to show it in a single ledger.

Please go to Vendors>>Search Vendor>>Click on Edit>>Linked Customer>>Click on Change Customer>>Search Customer>>Link Customer.