Payment entry with credit

A customer returned a whole invoice and buying a different item with the same total. I returned the old invoice with credit note issued, and create a new invoice. When I try to make payment on the new invoice, I am able to use both invoices, but not able to enter $0 on the payment amount. Anyone know how to apply in this situation?