I'm trying to write a logic hook that will pull information from another module field (paid status on invoicing) and use it to alter a field in another module (outstanding balance in Accounts)

Any pointers as to the simplest way to do this?

Many thanks