Hi Giulio,
I have't understand the issue, why you want to clear one vendor invoice with another vendor document? Is it posted wrongly to other vendor? If yes then as per the Accounting standards you can not clear. You have to reverse the documents and post correctly. Then you can clear. If it is just a scenario then its fine you can do it. Thanks.
Regards,
Inthiyaz