Inventory management

SOLVED

I need to know how to account for inventory that has been returned to a vendor and a credit issued. The AP side is handled with invoices and credit memos. what we have found is that the inventory item has not been removed from the inventory record when it has been returned to the vendor. What is the correct way to deal with incorrect inventory levels due to returned items.