How to apply a credit note to multiple invoices

You must unreconcile the initial invoice. So this invoice go back to not paid. Then you use the credit wizard with refund to create the credit note and paid the former invoice.
Once you post the new invoice, you will get for this party a payable of $600 and a receivable of $1000.
You can use the Grouping receivable/payable lines wizard to group both and get a receivable of $400.