AR Invoices with different customer names

SUGGESTED

I have a customer who used to be set up as a different name. On the old name, there are outstanding invoices. On the new name, those exact same invoices are marked as a prepaid. How can I clean this up and get all invoices under both names to a zero balance?