Accounts payble. Parts posted to accounts payable, refund issued by credit card. How do i post this entry?

SUGGESTED

Hello
We are on pay later with a vendor. On an invoice we purchased a part. It was post in accounts payables module and updated inventory. When the part was returned, the vendor issued a credit via credit card. How do I record this entry?

Thank you

Emily