We often have participants for an event who have a portion of their fee paid by another entity. Sometimes, the other entity pays for more than one participant in the same transaction. I realize that Civi doesn't have an out-of-the-box method to handle this, so I've been toying around with an extension to make it happen.
What I don't understand is this: If J.Smith makes a $200 contribution that is to pay for Participant A ($100) and Participant B ($100), it would seem that creating a new entity_financial_trxn as follows would do the trick:
- entity_table = "civicrm_contribution"
- entity_id = contribution id of the participant payment
- financial_trxn_id = id of the transaction for J.Smith's contribution
- amount = 100
But this applies the full amount of J.Smith's contribution ($200) to the Participant Payment, rather than just $100. This is not what I expect when entity_financial_trxn.amount is the "allocated amount of transaction to this entity".
I guess my question is: Is this in fact the intended behavior? If not, what is the purpose of entity_financial_trxn.amount?
(I should also note that we do not use civi's accounting features, so maintaining audit-level financial transactions is not a concern.)