Invoice Custom Fields

Invoice Custom Fields

Can someone please help me with how to write a bit of code to update 2 custom invoice fields?
The fields are "Issued By' & "Contact Email"
What I am looking for is when an invoice is created that these two fields are automatically populated with the user name an user email address respectively.

Any help with this would be appreciated.