clearing a credit invoice and a debit invoice for a vendor

I have an open invoice showing a credit and one showing a debit for the same vendor.  I want to clear it, but when I do into Invoice Data Entry it says they are already paid.  They are on the Aged Invoice Report and when I check the invoice under the Vendor it does not show them paid???