If any payments are on an invoice the invoice should not be able to be deleted. It messes with the books and it does not have any history on the piece in history.