Multiple prepayment invoices

How do I adjust multiple prepayment invoices for the final invoice?