Link Delivery note to intercompany Purchase Receipt

Dear community,
When creating an Inter Company Purchase Receipt via Delivery Note, it allows me to create it multiple times with same quantity
How to reduce duplication or multiple Purchase Receipt entries by linking Delivery Note references for Inter Company Purchase Receipts
Thanks,

Ho to link please guid