Dear Customer,
The whole process should be reverted.
First, the Payable should be invalidated or credited. Next, from the Goods Receipt record a Returned Goods should be created. Last, the Purchase Order should be closed.
Now you can create all the documents with the correct Vendor.
HansaWorld Support Team