Credit note for price difference in purchase order

Hi

Recently we had a issue with a vendor and some purchase orders were emitted with wrong prices. It’s complicated for it to emit new invoices so it emitted us credit notes for the price differences, we don’t have to (and actually we can’t) return the products.

Now we need that these credit notes affect the cost of the products but I can’t find an option to do this. Any help would be apreciatted.

I would issue free text credit notes to fix the AP balance and adjust the stock value using Inventory closing > Adjustments > Transaction menu