This enhancement, which is coreBOS Updater compatible and does not modify any base files, will extract the Account from the RelatedTo field on the Payment module and create a new Account field.
It will NOT copy any existing values. It just creates the new field.
Then it will add an event controller to set the value of the new account field when we create a payment record from the related list of a contact.