Prepayment of Invoices

We have made a prepayment to a vendor.  How can we record this prepayment and the subsequent entry of invoices to relieve the prepayment?