View Payment owned by Different contact on Membership and Participant View.
Overview
Using Webform, we can set that, contribution assigned to contact A and Membership record will be assigned to Contact B and C (based on number Contact selected in webform). IF we visit the Membership Record of B and C, we can not see the linked Payment, because its owned by another contact. and there is NO way to check who own the payment record.
Current behaviour
Currently it does not show linked payment record if payment is not present on same contact.
Expected behaviour
Linked Payment record should show, irrespective of who own the payment record as long as payment is belong the respective Membership.
In this case, webform create membership payment link between each contact membership and contribution id in civicrm_membership_payment
table.
As long as we have linking between membership and contribution id, then it shows linked payment on Membership View. Same apply to participant.