Here is how to fix it:
  1. When you receive the vendor's invoice, update the cost on the invoice to to be correct.
  2. Saved the invoice.
  3. Stock adjust the inventory out.
  4. Correct the cost.
  5. Stock adjust correct quantity back in.