You still have not provided the earlier requested information
Costing method
I would also ask
What was the inbound cost - show the invoice and the costing transaction.
What was the credit cost - show the credit and the costing transaction.
It is reversing what was otiginally posted, so the required solution maybe that there is no solution.