When voiding one of the payments for an invoice, we are not able to delete the invoice because another payment record still exists.

We would need to void the first payment then void the second and mark the checkbox to delete the invoice at that point.