How to enter a vendor credit due to wrong pricing without affecting stock quantity

How to enter a vendor credit due to wrong pricing without affecting stock quantity