How do I delete a invoice that show error deleting, object has other reference ?
You must identify the transaction that references the one you want to delete and delete it first. For example, if you have received a payment against a sales invoice, you must first delete the payment receipt. Then you will be able to delete the sales invoice.