bug fix while deleting rb_invoice