Function that update the Contacts module from the Invoice module

Function that update the Contacts module from the Invoice module

Hello,

i want to know how i create a function that check the location at the invoice and updates it at the Contacts.

Thanks in advance.

kosta