Answers.Body: <p>I would suggest </p>
  
  <ol>
  <li>Create participant for Participant A</li>
  <li>Create participant for Participant B</li>
  <li>Create a $200 contribution against J.Smith contact </li>
  <li>Add line $100 line item for Participant A and Participant B with contribution id from #3</li>
  <li>Add participant payment entry linking contribution from #3 with participant id from #1 and #2.</li>
  </ol>
  
  <p>If you are using drupal than whole process can be done using webform without any customization. (Probably caldera form for wordpress)</p>
  
  <p>Thanks
  Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-12T15:29:25.090Z
Answers.Text: Thanks for the suggestion, but this doesn't get me what I am looking for. This results in an additional line item added to the participants, in addition to what is already the total fee, so the original Participant line item selection needs to be edited. But even more importantly, the additional participant_payment entry doesn't show up at all. (Does Civi assume only one payment per participant entry?) Even if the payment showed up, there's nothing in a participant_payment that would indicate that only a portion of the contribution should be applied (as with entity_financial_trxn).
Answers.UserDisplayName: Phil Morice Brubaker
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-12T15:50:11.903Z
Answers.Text: If your system dont want to maintain accounting entries than you should not think of civicrm entity financial trxn entries.. portion of payments can be handled in line item it self. If its a case a participant can have multiple line items and only few line items he will pay than probably you may need to think adding a entity table to manage that or use soft credit functionality
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-13T18:39:53.183Z
Answers.Text: Upon further exploration, I think this does get me there. I do have the case where the participant pays some themselves, and others pay for a portion. But, I think you have me on the right track to sort it out.
Answers.UserDisplayName: Phil Morice Brubaker
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-11T22:02:30.673Z
Answers.LastActivityDate: 2020-02-11T22:02:30.673Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>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.</p>
  
  <p>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:</p>
  
  <ul>
  <li>entity_table = "civicrm_contribution"</li>
  <li>entity_id = contribution id of the participant payment</li>
  <li>financial_trxn_id = id of the transaction for J.Smith's contribution</li>
  <li>amount = 100</li>
  </ul>
  
  <p>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". </p>
  
  <p>I guess my question is: Is this in fact the intended behavior? If not, what is the purpose of entity_financial_trxn.amount?</p>
  
  <p>(I should also note that we do not use civi's accounting features, so maintaining audit-level financial transactions is not a concern.)</p>
  
  <p>Civi 5.19.1</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-11T21:57:58.970Z
Comments.Text: cant you do this by using line item for the participant?
Comments.UserDisplayName: Pradeep Nayak
Tags: <contributions><partial-payments>
Title: Applying part of a contribution to a Participant Payment
ThreadText: # Applying part of a contribution to a Participant Payment
  
  (Asked by: username_0 on 2020-02-11)
  
  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.)
  
  Civi 5.19.1
  
  **Tags:** contributions, partial-payments
  
  > **Comments:**
  > **username_1**: cant you do this by using line item for the participant?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-02-11. Score: 0 | Accepted answer
  
  I would suggest
  
  1. Create participant for Participant A
  2. Create participant for Participant B
  3. Create a $200 contribution against J.Smith contact
  4. Add line $100 line item for Participant A and Participant B with contribution id from #3
  5. Add participant payment entry linking contribution from #3 with participant id from #1 and #2.
  
  If you are using drupal than whole process can be done using webform without any customization. (Probably caldera form for wordpress)
  
  Thanks
  Pradeep
  
  > **Comments:**
  > **username_0**: Thanks for the suggestion, but this doesn't get me what I am looking for. This results in an additional line item added to the participants, in addition to what is already the total fee, so the original Participant line item selection needs to be edited. But even more importantly, the additional participant_payment entry doesn't show up at all. (Does Civi assume only one payment per participant entry?) Even if the payment showed up, there's nothing in a participant_payment that would indicate that only a portion of the contribution should be applied (as with entity_financial_trxn).  
  > **username_1**: If your system dont want to maintain accounting entries than you should not think of civicrm entity financial trxn entries.. portion of payments can be handled in line item it self. If its a case a participant can have multiple line items and only few line items he will pay than probably you may need to think adding a entity table to manage that or use soft credit functionality  
  > **username_0**: Upon further exploration, I think this does get me there. I do have the case where the participant pays some themselves, and others pay for a portion. But, I think you have me on the right track to sort it out.  
  
  ---
  
  