If party is customer and vendor both

What we can in case of any party is vendor or customer both ?

How can we link both entry for ERP next.

Do you self host?
If so, first install the doubleledger app, afterwards it will show up on your desk/system, then follow the guide to create both customers as both vendors and vice versa.

If you host with frappe, you need to contact them about this.