When a document (invoice/bill) is updated to change the contact (vendor/customer),
any existing transactions linked to that document now have their contact_id updated
to match. This fixes an issue where reports filtering by contact would not include
transactions from documents that were reassigned to a different contact.
Fixes#3336