Vendor Credit Note

Vendor Credit Note

How can I  give myself a credit from a vendor and use to pay open invoices???