supplier rebates re purchases

SOLVED

What is the best way to post supplier rebates that are starting to come on products that were sold during the year - they come on a credit purchase invoices that go on our account.  I need to post the rebates to the correct product.  Thanks