To edit the vendor details while creating purchase invoice, please follow the below mentioned steps:
Step 1: Add the vendor to your invoice
Step 2: Click on vendor >> Edit the details >> Update Vendor