adding get method for invoice