I want to create a field on my invoice and cash record that automatically populates the matching reference number. eg. when an invoice is matched to a cash record a matching reference is created. The status of the invoice is then automatically changed to matched and paid - I want this to trigger the automatic population of the matching reference field