Instead of creating a separate template field, you can use a custom field associated with Matter, Contact, and Matter Relations as a merge field on invoice templates.