Free of charge purchase

Sometimes there’s an agreement between the company and the supplier so that a given product will be delivered free of charge.

In many cases the company will want to record that agreement using a purchase so that the warehouse team knows that the goods will arrive but the stock move should not alter the cost price of the product (cost price should be kept as is).

Has anyone faced the same requirement? How are you managing it?

By which rule is that?
And from which difference price this is happening?

That need usually comes after there have been some issues with a previous order. The company sold the goods to its customers and they were broken or had other defects.

To compensate the supplier provides new goods free of charge, but if those get into the stock with a price of 0, it alters the cost price in an unwanted way.

Then the broken goods should be returned and the other one should be linked to the initial purchase order with the ordered price.
This is not new free goods but the follow up of a purchase.

How can you link those moves for a purchase that has already been invoiced (and paid)?

Note that the case is not for an obvious problem with the product that is detected when it comes into the warehouse, but it is detected weeks later.

Also in many cases those products are not returned to the supplier.

You fill the origin.

But you still have to simulate a return.