Multiple invoices paid with one check

What is the best way to record payment for multiple invoices with one check? In the past they have been recorded manually just as paid, but then I can't merge those multiple invoices to the one check. Thank you.
1